English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write a C++ program to print a triangle composed of a symbol. The number of lines and the symbol should be entered as input from the keyboard. For example, if the input values are * and 7, the output is as follows:


Do you wish to continue? (y = yes, n = no): y

Enter the symbol to be used to draw the triangle: *
How many lines do you want the triangle to be? 7

*
***
*****
*******
*********
***********
*************

Thank you for using this program.



(The triangle really isnt a right triangle it should be a normal one but it doesnt show up right here.)

2007-11-15 15:31:09 · 1 answers · asked by Anthony G 1 in Computers & Internet Software

1 answers

Do you have a specific question or just wanting someone to do you homework?

2007-11-15 15:34:55 · answer #1 · answered by mdigitale 7 · 1 0

fedest.com, questions and answers