V shape

closed account (23RkizwU)
A user inputs an integer number. A program should output the numbers as demonstrated below.
Example:number=11
1
2
3
4
5
6
                6
              5    7
          4          8
       3               9
    2                    10
  1                         11



If number is even, then you can add number 0 te break it even.
Last edited on
First step; get the integer number from the user.

Your previous question seemed to be simply you getting someone else to do your homework, and then you deleted the original question (presumbaly because you know that getting other people to do your homework will get you in trouble if anyone finds out).

Please don't do that. Switch on, engage thinking.
Last edited on
Topic archived. No new replies allowed.