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