Showing posts with label 1 27 3813 491419 Continuous Vertical Number Pyramid. Show all posts
Showing posts with label 1 27 3813 491419 Continuous Vertical Number Pyramid. Show all posts

5.15.2014

Continuous Vertical Number Pyramid

Q. Write a C program to print the following continuous vertical number pyramid design as:

1
2  7 
3  8  13
4  9  14  19
5 10  15  20  25

Ans.

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