import java.util.Scanner;
class HelloWorld {
public static void main(String[] args) {
int n,r;
Scanner ref = new Scanner(System.in);
System.out.println("enter you value !");
n=ref.nextInt();
while(n>0)
{
r=n%10;
System.out.print(r);
n=n/10;
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter