PROGRAM ON PATTERN 2
A
B B
C C C
D D D D
E E E E E
#include<iostream.h>
#include<conio.h>
Void main()
{
int i,j;
char n=’A’;
clrscr();
for(i=0;i<=5;i++)
{
for(j=0;j<=I;j++)
{
cout<<n;
}
n=n+1;
cout<<”\n”;
}
getch();
}
Comments
Post a Comment