class Output{
static void find
int n=1234, d ,s=0,c=0;
while(n!=0)
d=n%10;
s=s+d*(int)Math.pow(10,c++);
n=n/10;
}
System.out.println (s);
}
}
Answers
Answered by
5
Answer:
1234 is the answer
Explanation:
s=s+4*10^0
=4... ist
s=s+3*10^1
s=34...2nd
s=s+2*10^2
s=234..3rd
s=s+1*10^3
=234+1000
1234
hope it helps u....
Similar questions