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
I need help to solve this
0 Votes
How do we code calculator
1 Votes
How to add comment in python?
0 Votes
Engineer Cloud
0 Votes
Lua?
1 Votes