Q&A Discussions
% (помогите разобраться)
0 Votes
1 AnswerAddition of two numbers
-5 Votes
9 AnswersSum of amicable numbers
1 Vote
1 AnswerCan 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 Votes
8 AnswersHot today
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
How to make a 2d game
0 Votes
Not video
0 Votes
Not image in the page
1 Votes
Html
1 Votes