Java - Display numbers in a pyramid pattern. Write nested for loop that prints the following output

Regular Price: $35.00

Special Price $21.00

Details

Details

 

Display numbers in a pyramid pattern. Write 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

 

 

Additional Info

Additional Info

Programming LanguageJava

Reviews

Write Your Own Review

Only registered users can write reviews. Please, log in or register

Tags

Use spaces to separate tags. Use single quotes (') for phrases.