Q : Write a program to print the following pattern?
#include<stdio.h>
#include<conio.h>
/*=========================
Girfa Student Help
Pattern program
==========================*/
void main()
{
char a1='A',a2;
while(a1<='E')
{
a2='A';
while(a2<=a1)
{
printf("%c",a1);
a2++;
}
printf("\n");
a1++;
}
getch();
}
No comments:
Post a Comment