Course Solutions Uncategorized (Solved) : Language C 1 Please Save Program Name Trianglec Write Nested Loop Prints Following Output Q30120883 . . . .

(Solved) : Language C 1 Please Save Program Name Trianglec Write Nested Loop Prints Following Output Q30120883 . . . .

 

Language C

1. Please save the program with the name‘triangle.c’
Write a nested for loop that prints the following output:
1
1 2 1
1 2 4 2 1
1 2 4 8 4 2 1
1 2 4 8 16 8 4 2 1
1 2 4 8 16 32 16 8 4 2 1
1 2 4 8 16 32 64 32 16 8 4 2 1
1 2 4 8 16 32 64 128 64 32 16 8 4 2 1
Hint: Here is the psudocode solution:
for row from 0 to 7 {
pad leading blanks in a row like this
for the column from 1 to 7-row:
print

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Microtech Incorporated has decided to package its cell phone in a​ smaller, recyclable package.​ Additionally, the company wil(Answered) : Microtech Incorporated has decided to package its cell phone in a​ smaller, recyclable package.​ Additionally, the company wil

Microtech Incorporated has decided to package its cell phone in a​ smaller, recyclable package.​ Additionally, the company will discontinue the practice of shipping each phone with a​ 250-page user manual