Results 1 to 2 of 2
Thread: asterisks triangles
- 01-12-2008, 05:33 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 1
- Rep Power
- 0
asterisks triangles
Hi
i have written a program to display a
*****
****
***
**
*
triangle using the code
but i can't figger out how to display aJava Code:String stars = "",star=""; for(int count = 0; count < 5; count++) { star=star+"*"; stars = stars + star+System.getProperty("line.separator"); } return stars;
*****
****
***
**
*
traingle using that code
any help would be be appreshated.
- 01-12-2008, 07:42 PM #2
Member
- Join Date
- Jan 2008
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
printing an "E" out of asterisks via strings
By hokieman07 in forum New To JavaReplies: 1Last Post: 04-08-2008, 05:45 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks