Showing posts with label abbb babb bbab bbba character pyramid. Show all posts
Showing posts with label abbb babb bbab bbba character pyramid. Show all posts

5.15.2013

Dignal Character Pyramid

Q. Write a C program to print the following character pyramid as:

 a b b b
 b a b b
 b b a b
 b b b a

Ans.

/*c program for alternate character pyramid*/
#include<stdio.h>
int main()
{
 char r,c,ch='d';