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
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