Showing posts with label ABCD BCDA CDAB DABC Program source code. Show all posts
Showing posts with label ABCD BCDA CDAB DABC Program source code. Show all posts

12.03.2012

Character Rectangle Program


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

ABCD
BCDA
CDAB
DABC

Ans.

Cross-reference: Before you read answer of above program, i recommend to read Number Rectangle Program for easily understand this program.

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