|
-
I NEED HELP!!!!!!! USER VARIED DIAGRAMS
Hi i am trying to make a program that prints a symmetrical figure like so: (excluding the periods)
..................*
................***
..............*****
................***
..................*
but,, the problem is, i need it to ask the user how many lines the figure has, and print a figure like the above, but with as many lines as the user requires,, the above figure has 5 lines for example,, in the pattern 1 *, 3 *, 5*, 3* , 1* ........ but i cannot figure out how to make the program print out the stars and lines according to the amount of lines a user inputs...
any help would be appreciated..
thanks-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks