Showing posts with label Equal Character Triangle. Show all posts
Showing posts with label Equal Character Triangle. Show all posts

2.06.2014

Equal Character Triangle

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

A
BAB
CBABC
DCBABCD
EDCBABCDE

Ans.

/*c program for Equal Character Triangle pattern*/
#include<stdio.h>
int main()
{