Question Write a program using loops in C format to show the following output. T
ID: 3689090 • Letter: Q
Question
Question
Write a program using loops in C format to show the following output. The number that the user entered would be 6 for this example.Needs to print the stars and integers the same way they are shown
1
*
2 3
* *
4 5 6
* * *
Output format should be:
Enter the number:
The output of the program is:
Explanation / Answer
#include main() { int row, c, n, temp,i=0; printf("Enter the number of in pyramid of stars you wish to see "); scanf("%d",&n); temp = n; for ( row = 1 ; rowRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.