Write a program which takes a single integer input "height" and displays a "pyramid"
of this height made up of "*" characters on the screen.
Sample Output:
Pick another height (must be between 1 and 30): the triangle must be equilataural
*
***
*****
*******
*********
***********
*************
Heba91 0 Newbie Poster
Recommended Answers
Jump to PostHow's your eyesight?
A bit fuzzy round the edges perhaps with looking at too many *'s (they're dots actually).
No?
How come you missed this then?
http://www.daniweb.com/forums/announcement9-2.html
Jump to PostHow about posting your latest code, not your latest ASCII art rendition?
Then we can tell you exactly what you did wrong.
Or are you hoping that if you roll around helpless for long enough that someone will spoon-feed you the answer?
It's a choice, but it …
Jump to Postyou went wrong in not using code tags.
You went wrong in writing C++ code when you're supposed to make a Java program.
All 9 Replies
Salem 5,265 Posting Sage
bsewell 0 Junior Poster in Training
Heba91 0 Newbie Poster
bsewell 0 Junior Poster in Training
Heba91 0 Newbie Poster
Salem 5,265 Posting Sage
Heba91 0 Newbie Poster
jwenting 1,905 duckman Team Colleague
bsewell 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.