What will be the code for>?

Write a program that prompts the user to enter an integer from 1 to 15 and displays
a pyramid . For example if the input integer is 6 ,the output is shown below :


1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
6 5 4 3 2 1 2 3 4 5 6

Showing Answers 1 - 1 of 1 Answers

vinoth kumar

  • Sep 10th, 2012
 

Code
  1. span style="color: #ff0000;">"%d""      ""%d    ""%d    ""

  2. "

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions