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

Asked: Does anyone know the new changes to the 2011 Food ...

Does anyone know the new changes to the 2011 Food Pyramid?