import java.util.Scanner ;
public class Main {
public static void main(String args[]) {
Scanner scn =new Scanner(System.in);
long n = scn.nextLong();
long ans=0;
long r;
while(n!=0) {
r=n % 10;
ans=ans*10+r;
n=n/10;
}System.out.println(ans);
}
}
This code is working in eclipse but not working here
but it is not working here, should i submit it?
yes its working fine i have verified