Originated From
AOL Search

Pyramid

 

  1. (Printing numbers in a pyramid pattern) Write a nested for loop that prints the following output:Cry

 

 

 

 

 

 

 

 

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

Liked this question? Tell your friends about it

Related Questions

Other people asked questions on similar topics, check out the answers they received:

Asked: Where can I buy CRYSTAL PYRAMIDS in New York ...

Where can I buy CRYSTAL PYRAMIDS in New York City?

Asked: To whom would one present a theory on pyramid ...

to whom would one present a theory on pyramid construction? in colorado universities, there doesn't seem to be an egyptian archeologist available and i am not having much luck posting emails to other ...

More Questions

Why were pyramids built?

We won't know until we discover who built them and how they built them.

How to make a pyramid out of sugar cubes with flat sides?

You can build it as a stepped pyramid. Then you can try to smooth it. You could try a grater, or a file. Or you could try using wet paper towels, because water will dissolve the sugar. Another way would be to build the stepped pyramid, and then make a paste from confectioner's sugar and water ...

How were the pyramids made

These pyramids, cut from surrounding areas, rolled on the ground or transported by barges... The real work would have came when they split into other dimensions/ w all that work and setting those huge blocks of basalt, it becomes a multi tap, a means for communication over time and well, some folks ...

Where is Pyramid Lake?

dude how long have u lived in la la land ? its just north of LA off the golden state freeway , past magic mountain.{25miles] Bust out some cash and get a map .......GO LAKERS GO DODGER BLUE. EX ANGELENO IN TEXAS {I WILL ALWAYS LOVE L.A.}hi ...