Q. Write a C program to make the following perfect equal number triangle shape as:
4
4 3 4
4 3 2 3 4
4 3 2 1 2 3 4
4 3 2 3 4
4 3 4
4
Ans.
Its looks very tough to make the above number triangle but when you divided this triangle (pyramid) in sub-triangle (sub-pyramid) then its look like as:
4
4 3 4
4 3 2 3 4
4 3 2 1 2 3 4
4 3 2 3 4
4 3 4
4
4
4 3 4
4 3 2 3 4
4 3 2 1 2 3 4
4 3 2 3 4
4 3 4
4
Ans.
Its looks very tough to make the above number triangle but when you divided this triangle (pyramid) in sub-triangle (sub-pyramid) then its look like as:
4
4 3 4
4 3 2 3 4
4 3 2 1 2 3 4
4 3 2 3 4
4 3 4
4