Discussioni Q&A
Addition of two numbers
-5 Voti
9 RisposteCan 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 Voti
8 RispostePopolare oggi
Decorators in python.
2 Votes
Need help
1 Votes
How to install Bcrypt here
1 Votes
What is happening with sololearn
1 Votes
Please click me
0 Votes
Programming language learning
0 Votes
How to start coding
0 Votes