Juego de posiciones
Crea una función que ordene vectores de tal manera que los primeros números sean negativos ordenados de menor a mayor. Y después...
2 years 前
已解决
Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...
2 years 前
已解决
Digits Multiplication
Your function should calculate the product of the digits of a positive given integer excluding any zeroes.
Example: the result ...
2 years 前
已解决
2倍してみよう - ここからスタート!
初めにこの問題を試してみよう。
入力としてxを与え、それを2倍して結果をyに代入せよ。
Examples:
Input x = 2
Output y is 4
Input x = 17
Output y is 34
...
Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.
2 years 前
已解决
Roll the Dice!
*Description*
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
*Example*
[x1,x2] =...
2 years 前
已解决
Calculate Wind Chill Factor
The NWS Wind Chill Temperature (WCT) index formula for calculating the dangers from winter winds and freezing temperatures:
Cal...