Results 1 to 9 of 9
- 06-21-2011, 08:47 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 12
- Rep Power
- 0
- 06-21-2011, 09:32 AM #2
Well I suggest you create a loop that manipulates asterisks into the form of a triangle. You need any more help?
- Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
- +Rep people for helpful posts.
- 06-21-2011, 09:35 AM #3
Member
- Join Date
- Mar 2011
- Posts
- 12
- Rep Power
- 0
thank u very much dark.... i have done right angled triangle...yeah i need some help for the mirror image of that..
Thanks
- 06-21-2011, 10:28 AM #4
Ok, well then what do you need help with in detail? We don't write code for people here, we help them write their own code.
- Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
- +Rep people for helpful posts.
- 06-21-2011, 10:39 AM #5
Member
- Join Date
- Mar 2011
- Posts
- 12
- Rep Power
- 0
ok can u plz tel d idea for implementing d for loop foe dat program???
- 06-21-2011, 10:43 AM #6
Well that depends, what have you tried so far?
- Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
- +Rep people for helpful posts.
- 06-21-2011, 11:13 AM #7
Please go through this web page.
db
- 06-21-2011, 11:23 AM #8
- 06-21-2011, 12:15 PM #9
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
I bet you're cramming all your loops and tests in your main( ... ) method; don't do that. For starters have a look at this little method:
This method can be a building block for all shapes you want to print.Java Code:private static void printChars(char c, int n) { for (int i= 0; i < n; i++) System.out.print(c); }
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Triangles wont draw Help?
By The_Sponzy_Paradox in forum Java 2DReplies: 9Last Post: 03-22-2010, 02:42 AM -
Triangles java problem (basic help)
By adz06 in forum New To JavaReplies: 5Last Post: 10-31-2009, 06:58 PM -
Drawing out triangles
By leiferouis in forum New To JavaReplies: 24Last Post: 01-16-2009, 08:18 PM -
Triangles
By CodeDog in forum New To JavaReplies: 9Last Post: 10-14-2008, 09:18 PM -
asterisks triangles
By Dan121 in forum New To JavaReplies: 1Last Post: 01-12-2008, 07:42 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks