Q&A Discussions
int x = 10; x = ;
-3 Votes
7 AnswersCan 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
Can I learn from sololearn for free ?If yes then why can't I open the next level in genai course?
0 Votes
Cvv fullz
0 Votes
How to make a message in python
0 Votes
HW help
0 Votes
Übersetzung deutsch
0 Votes
Layout or SplashActivity
1 Votes
Kaleidoscopes
1 Votes
People
0 Votes