Showing posts with label 1 23 4 56 7 89 10 vertical continues number pyramid. Show all posts
Showing posts with label 1 23 4 56 7 89 10 vertical continues number pyramid. Show all posts

8.23.2013

Vertical Continues Number Pyramid

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

 1

 23
 4
 56
 7
 89
 10

Ans.

/*c program for vertical continues number pyramid*/
#include<stdio.h>
int main()
{
 int r,c,x,y;