Write a program in C to print a pyramid using Ask the use t

Write a program in C to print a pyramid using *. Ask the use to input the height of the pyramid. Using the height given by the user, use nested loops to draw the pyramid. Write a C Program to print half pyramid as using numbers as shown in figure below. This example is for height 5. Ask user for a height and depending on user input, draw the half pyramid. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5

Solution

/* Program to print half pyramid */

 Write a program in C to print a pyramid using *. Ask the use to input the height of the pyramid. Using the height given by the user, use nested loops to draw t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site