Showing posts with label 1 2 3 4 5 15 14 13 12 6 7 8 11 10 9 pattern pyramid C source code. Show all posts
Showing posts with label 1 2 3 4 5 15 14 13 12 6 7 8 11 10 9 pattern pyramid C source code. Show all posts

2.18.2014

Number Pyramid Pattern

Q. Write a C program to print the following square number pyramid pattern as:

1  2  3  4  5
15 14 13 12
6  7  8
11 10
9

Ans.

/*c program for square number pyramid pattern*/
#include<stdio.h>
int main()
{