Swap two numbers
Example
Input:
a = 10
b = 20
Output
a = 20
b = 10
21 days ago
Solved
Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.
21 days ago
Solved
How to add?
* Imagine you are in 2222 Anno Domini, when everyone must learn how to add,
* and competing for the highly prestigious post of,...
22 days ago
Solved
prime consecutive sums
Create a number sequence of 1 to n, such that the sums of every two consecutive numbers are all primes.
E.g. if n = 5, you may ...
22 days ago
Solved
Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...
29 days ago
Solved
Times 2 - START HERE
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Examples:...