I need help writing a program that accepts an integer value (I.E 5) and outputs
ID: 3639431 • Letter: I
Question
I need help writing a program that accepts an integer value (I.E 5) and outputs a number of shapes that represents that value. Here is an example:A. a line of 'x' asterisks, e.g., if 'x' entered is 5,
*****
B. a sqaure block of asterisks, 'x' by 'x,' e.g., if 'x' entered is 5,
*****
*****
*****
*****
*****
C. an upside-down right triangle, e.g., if 'x' entered is 5,
*****
****
***
**
*
D. a number of right triangles, from the smallest one (height of 1) to
the largest (height of 'x'); e.g., if 'x' entered is 5,
*
*
**
*
**
***
*
**
***
****
*
**
***
****
*****
Can someone help me out with this? thanks!