+ 3

Challenge reverse numbers ! 👑🏆

write a program that reverse an input numbers . input : 123456 output : 654321 using your favourite language .

15th Oct 2017, 4:32 PM
Aymen Jarouih
Aymen Jarouih - avatar
13 odpowiedzi
+ 18
JavaScript: alert(prompt("").split("").reverse().join(""));
15th Oct 2017, 4:56 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 11
15th Oct 2017, 5:29 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 8
print(input()[::-1]) Python.
15th Oct 2017, 4:51 PM
LunarCoffee
LunarCoffee - avatar
+ 6
strrev($number) in PHP
15th Oct 2017, 4:41 PM
Freezemage
Freezemage - avatar
+ 6
public class Program { public static void main(String[] args) { String num = "123456789"; StringBuilder reverse = new StringBuilder(num); reverse.reverse(); System.out.print(reverse); } }
15th Oct 2017, 4:45 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 2
Almost all of Sololearn's languages are covered already =)
15th Oct 2017, 5:00 PM
Freezemage
Freezemage - avatar
0
l=input() l=l[::-1] print(l)
16th Oct 2017, 3:09 PM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar