Sesiones de PyR
% (помогите разобраться)
0 Votos
1 RespuestaAddition of two numbers
-5 Votos
9 RespuestasCan someone explain this code to me....
class ReverseNumberDemo
{ public static void main(String args[]) {
int num=123456789;
int reversenum =0;
while( num != 0 ) {
reversenum = reversenum * 10;
reversenum = reversenum + num%10;
num = num/10; }
System.out.println("Reverse of specified number is: "+reversenum);
}
}
the thing I don't get is the reversenum part......isn't reversenum=0 so wouldn't reversenum*10=0
0 Votos
8 RespuestasEn tendencia hoy
What is problem in this code
0 Votes
playground input
0 Votes
Software developer
0 Votes
Activities on sololearn
0 Votes
How I can use div
0 Votes
Html issue
0 Votes
TIPS From Veterans
1 Votes
Playground input
0 Votes