java doubt - urgent

Reply

Join Date: Jun 2006
Posts: 3
Reputation: nammi_aqua is an unknown quantity at this point 
Solved Threads: 0
nammi_aqua nammi_aqua is offline Offline
Newbie Poster

java doubt - urgent

 
0
  #1
Jul 17th, 2006
I am not able to code this is java.
I have to use nested loops.
The pattern I need to get is
1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,341
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 250
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: java doubt - urgent

 
0
  #2
Jul 17th, 2006
What have you tried so far, or, at least, what are your ideas as to how it could work?
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 4
Reputation: ranjanbaisak is an unknown quantity at this point 
Solved Threads: 0
ranjanbaisak ranjanbaisak is offline Offline
Newbie Poster

Re: java doubt - urgent

 
0
  #3
Jul 17th, 2006
Originally Posted by nammi_aqua
I am not able to code this is java.
I have to use nested loops.
The pattern I need to get is
1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
You should have tried for this.
int end = 5;
for(int i=end; i>= 1;i--){
System.out.println();
for(int j=1;j<=i;j++){
System.out.print(j);
}
}
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: java doubt - urgent

 
0
  #4
Jul 17th, 2006
it's not urgent, and it's not "a doubt". In fact that's a completely incorrect way to use the word "doubt".

Do your own homework, we're not here to help you cheat your way to a diploma so you can then steal our jobs.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC