Showing posts with label 3 Nested Number Pattern C Program. Show all posts
Showing posts with label 3 Nested Number Pattern C Program. Show all posts

10.11.2015

3 Nested Number Pattern C Program

Q. Write a C program to make the following number pattern triangle program as:

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

Ans.

Before you start to write down the source code of above number pattern program, carefully look the number pattern and divide it sub pattern as following:

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