#include <iostream.h>
#include <conio.h>
int main ()
{
int i,j;
char ch = 'A';
for ( i = 1; i <= 5; i++)
{
for (j =1; j<=i; j++)
{
if (j == 1)
ch = 'A';
cout<< ch++;
}
cout<< endl ;
}
return 0;
}
int i,j;
char ch = 'A';
for ( i = 1; i <= 5; i++)
{
for (j =1; j<=i; j++)
{
if (j == 1)
ch = 'A';
cout<< ch++;
}
cout<< endl ;
}
return 0;
}
gd
ReplyDelete