Showing posts with label perfect equal number triangle c program. Show all posts
Showing posts with label perfect equal number triangle c program. Show all posts

1.04.2016

Perfect Equal Number Triangle C Program

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