Results 1 to 5 of 5
- 11-23-2011, 06:02 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 4
- Rep Power
- 0
- 11-23-2011, 07:35 PM #2
Re: Hello guys,, can anybody help me create this star pattern.
You'll need one or more loops to print this pattern.
Look at the pattern of where spaces are printed and where *s are printed on each row.
How many spaces on the first row?
How many spaces on the second row?
etc to the last row
How is the row number related to the number of spaces printed on a row?
- 11-23-2011, 09:13 PM #3
Member
- Join Date
- Nov 2011
- Posts
- 4
- Rep Power
- 0
Re: Hello guys,, can anybody help me create this star pattern.
no space on first row and then 1 space each as the stars progress....
- 11-23-2011, 09:14 PM #4
Member
- Join Date
- Nov 2011
- Posts
- 4
- Rep Power
- 0
Re: Hello guys,, can anybody help me create this star pattern.
can u show me the sample of the loop please..
- 11-23-2011, 09:25 PM #5
Re: Hello guys,, can anybody help me create this star pattern.
Do you know how to write a for loop? This must be covered in every language textbook and tutorial.
Go to this site and Search for "For"
Trail: Learning the Java Language: Table of Contents (The Java™ Tutorials)
One loop will take the row number and use it to control how many print statements you execute.
Each print(" ") will print one space.
Similar Threads
-
Star pattern help?
By GeeKunMow in forum New To JavaReplies: 13Last Post: 07-21-2011, 05:59 AM -
How to mirror Star Pattern
By andypatel00 in forum New To JavaReplies: 10Last Post: 04-04-2011, 03:50 AM -
Star triangle pattern
By crazy4fun in forum New To JavaReplies: 7Last Post: 03-06-2011, 01:03 PM -
intricate star pattern
By aamster in forum New To JavaReplies: 7Last Post: 10-11-2009, 06:50 AM -
Recursive Star Pattern HELP PLEASE!!
By ITnewbie in forum New To JavaReplies: 1Last Post: 09-25-2009, 09:55 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks