¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
int x = 10; x = ;
-3 Votos
7 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
Automatation python
1 Votes
Coding
1 Votes
view challenge analytics
2 Votes
HTML
0 Votes
Problem with application
0 Votes
how to create a website
0 Votes
How to change the font
0 Votes
How to make a game with Phyton
1 Votes
How do you make shapes in web
0 Votes
Pygame
1 Votes