Results 1 to 10 of 19
Hybrid View
-
12th Sep 2011, 06:15 AM #1You can call me GCode:
/** * Prints the pattern in the post above. * * @author Gaurav * @version 1.0 */ public class pattern { public static void main(String[] args) { for(int i = 1; i <= 5; i++){ for(int j = 1; j <=5; j++){ if(j < i){ System.out.print(i); } else{ System.out.print(j); } } System.out.println(); } } }
.
One suggestion. Please do try doing the programs yourself first.. If you're stuck somewhere then only look out for help. Just typing in the pattern and asking for the solution gives the impression that you want us to do your homework (not saying that this might be the case). But I and many others would appreciate if you post your progress as well along with the question.Gaurav Reviewed by Gaurav on . [JAVA} Need help in a Nested Loop Any1 can help me in java that can will have an output like these please.. 54321 4321 321 21 1 Rating: 5
My Langotiya Yaars (Chaddi buddies): JmZ, humour, Chutad, Esotorisk, l0calhost, Daniel, Mind Freak?, TLK, Amz
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Java stinks: Turn off your Java browser plugin
By Loget in forum General DiscussionReplies: 37Last Post: 5th Sep 2012, 07:40 AM -
[PHP] Need help to loop true the results
By AndroidApps in forum Web Development AreaReplies: 6Last Post: 5th Feb 2012, 09:56 AM -
Php Loop Prob
By Chris2k in forum Web Development AreaReplies: 1Last Post: 16th Jan 2012, 02:00 PM -
What's the biggest forum out there? Been out of the loop..
By wildfire95 in forum Webmasters, Money MakingReplies: 3Last Post: 7th May 2011, 11:28 AM -
Redirect loop?!?!
By GeeZus in forum Technical Help Desk SupportReplies: 4Last Post: 9th Jun 2009, 04:36 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...