Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
int x = 10; x = ;
-3 Votes
7 RéponsesCan 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 Vote
8 RéponsesAujourd'hui en vedette
Is the AI course worth the $49?
1 Votes
Comparing code coach solutions
3 Votes
Where to use
0 Votes
Coding path
0 Votes
How to win bits
1 Votes
Road Runner!!! ✌🏻🙌🏻
1 Votes
General python
0 Votes