Обсуждения
Class competition
0 голосов
4 ответов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 ответовАктуальное сегодня
HTML/CSS questions
0 Votes
Certificate Problem
0 Votes
Find courses
0 Votes
How to learn css and html
0 Votes
what the hell is going on this lessons cause i cant undrstand anything on any of the lessons
0 Votes
About progress
0 Votes