Обсуждения
% (помогите разобраться)
0 голосов
1 ответAddition of two numbers
-5 голосов
9 ответовSum of amicable numbers
1 голос
1 ответCan 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 голосов
8 ответовwhat is wrong with this code ?
6 голосов
4 ответовАктуальное сегодня
Decorators in python.
2 Votes
Need help
1 Votes
How to install Bcrypt here
1 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
Hello !
0 Votes
Help
1 Votes