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
How to use the get() method
3 Votes
How to get account back?
1 Votes
So this what I'm trying to solve
2 Votes
PHP Tutorial Idea
1 Votes
Gimme some advice
0 Votes