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: Security question reset

how do you recover your security question or do you

Be The First To Answer

Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them

Ask a Question... We'll forward it to people who know

More Questions

How old are (currently) the pyramids in Egypt? But ...

Hey Jake, You are right, there has been a lot of speculation about the real age of the pyramids. Until now, no one theory has been ultimately proved to be the right one. However, scientists are pretty much in agreement now after a lot of testing projects that the Giza pyramids were built between ...

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 ...