Showing posts with label equal number triangle pattern C program. Show all posts
Showing posts with label equal number triangle pattern C program. Show all posts

2.06.2014

Equal Number Triangle

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

1
212
32123
4321234
543212345

Ans.

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