1 1 2 1 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX 2 1 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX4 2 1 By using nested loops, write the code of this triangular shape.


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


 1 2 4 8 16 32 64 128 256 128 64 32 16 8 4 2 1


By using nested loops, write the code of this triangular shape.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here