0

input any number and it's output number will be in reverse.

pls answer with solution

25th Jun 2018, 4:23 AM
Subhanjan chakraborty
Subhanjan chakraborty - avatar
3 Réponses
+ 5
import java.util.*; public class Program { public static void main(String[] D_Stark) { System.out.print(new StringBuilder(new Scanner(System.in).nextLine()).reverse()); } }
25th Jun 2018, 8:53 AM
D_Stark
D_Stark - avatar
+ 1
Full Gamer i don't get homeworks anymore. My homework days are gone long ago,as I'm new to this coding just asking for little help. I was struggling with this particular program,but not now thanks to D_Stark
25th Jun 2018, 7:33 PM
Subhanjan chakraborty
Subhanjan chakraborty - avatar