Sesiones de PyR
Exeption Handling
2 Votos
17 RespuestasCan 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 Votos
8 RespuestasEn tendencia hoy
Web Development
3 Votes
Cybersecurity techies
4 Votes
Please complete this code.
0 Votes
Please answer.
0 Votes
What's wrong with code?
0 Votes
What's wrong in my code?
1 Votes
Introduction of html
0 Votes
Money Back
0 Votes
CSS or Tailwind
1 Votes
Singly linked list
0 Votes