Complete the program described above that draws a triangle or a diamond. Your pr
ID: 3757560 • Letter: C
Question
Complete the program described above that draws a triangle or a diamond. Your program should ask the user for what shape to draw. Your program should also ask for what character to use in drawing the shape, and the size to use for the shape. In addition to the triangle and diamond, add two more options as described below.
A triangle of size 4, using *:
*
***
*****
*******
A diamond of size 4, using *:
*
***
*****
*******
*****
***
*
Add two new options to the program. The two new options will produce triangles like to the ones shown below:
A right triangle of size 4, using *:
*
**
***
****
A side-ways triangle of size 4, using *:
*
**
***
****
***
**
*
Explanation / Answer
#include <stdio.h>
int main()
{
printf("I'm solving the question.... ");
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.