20CYS181 - Periodicals 1: Number Diamond Pattern


Submit solution

Points: 15
Time limit: 0.128s
Memory limit: 1000K

Author:
Problem type
Allowed languages
C

Problem Definition

Write a C Program to print the below numbered diamond pattern.

          9
        9 8 7
      9 8 7 6 5
    9 8 7 6 5 4 3
  9 8 7 6 5 4 3 2 1
    9 8 7 6 5 4 3
      9 8 7 6 5
        9 8 7
          9

Test Data

Sample Input 1

4

Sample Output 1
        9
      9 8 7
    9 8 7 6 5
  9 8 7 6 5 4 3
    9 8 7 6 5
      9 8 7
        9

Comments

There are no comments at the moment.