I can not understand this program
public class DoWhile{
public static void main(String[] args){
int n = 12345;
int t,r = 0;
System.out.println("The original number : " + n);
do{
t = n % 10;
r = r * 10 + t;
n = n / 10;
}while (n > 0);
System.out.println("The reverse number : " + r);
}
javawinnie September 21, 2011 at 7:32 PM
i need to get help about java programing
thrilledgcebile nhleko November 17, 2011 at 1:30 PM
i like your examples.
java programmingmurugan January 25, 2012 at 2:24 PM
simple program exercise very helpful java at j2ee kindly help me..
please help me , To unnderstantd this programshamim February 6, 2012 at 11:10 AM
I can not understand this program public class DoWhile{ public static void main(String[] args){ int n = 12345; int t,r = 0; System.out.println("The original number : " + n); do{ t = n % 10; r = r * 10 + t; n = n / 10; }while (n > 0); System.out.println("The reverse number : " + r); }
loop with while_for_do whileNoor Suhadah February 7, 2012 at 6:24 PM
1. for 2. while 3. do while display the following for loop 1 12 123 1234
blocking username and password..daphnie March 6, 2012 at 9:21 AM
i am requesting for a code for that matter
srenrique demon April 23, 2012 at 7:14 AM
its a nice program
doubtBalaji Sankar May 28, 2012 at 11:34 AM
Please provide a step by step process of how the program s working
OOPrjhoi July 30, 2012 at 7:49 AM
can you please add more examples?
java aslima asim ali September 13, 2012 at 2:05 PM
actualy it is not a comment:i want to ask how to make a do while loop in java program?can you help me pls :)
Post your Comment