Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote