+ 3
Challenge reverse numbers ! 👑🏆
write a program that reverse an input numbers . input : 123456 output : 654321 using your favourite language .
13 odpowiedzi
+ 18
JavaScript:
alert(prompt("").split("").reverse().join(""));
+ 11
Wasn't it like a few days ago?
https://www.sololearn.com/discuss/785950/?ref=app
+ 8
print(input()[::-1])
Python.
+ 6
strrev($number) in PHP
+ 6
public class Program
{
public static void main(String[] args) {
String num = "123456789";
StringBuilder reverse = new StringBuilder(num);
reverse.reverse();
System.out.print(reverse);
}
}
+ 2
Almost all of Sololearn's languages are covered already =)
0
l=input()
l=l[::-1]
print(l)