Showing posts with label 1 21 321 4321 54321 triangle. Show all posts
Showing posts with label 1 21 321 4321 54321 triangle. Show all posts

9.05.2013

Number Triangle

Q. Write a C program to print the following number triangle as:

     1
    21
   321
  4321
 54321

Ans.

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