Número aleatorio de PHP
// $min and $max are optional
rand($min,$max);
mattia896
// $min and $max are optional
rand($min,$max);
number = int(input('please enter your number: '))
reverse_num = 0
while number > 0:
temp = number % 10
reverse_num = reverse_num * 10 + temp
number = number // 10
print(reverse_num)
void printReverse(int n) {
if (n < 1) return;
cout << n << endl;
printReverse(n - 1);
}
printReverse(10); /// 10 9 8 7 6 5 4 3 2 1
number = input('please enter your number: ')
reverse_num = int(number[::-1])
print(reverse_num)