Write a program to construct the image shown below.
A
A B
A B C
A B C D
A B C D E
A B C D E F
A B C D E F G
A B C D E F G H
A B C D E F G H I
#include <stdio.h>
#include <conio.h>
void main ( )
{
int i, j;
clrscr ( );
printf ("\n\t\t\t Design of Alphabet");
printf ("\n\n\n\t\t\t ");
for ( i = 1; i <= 9; i++ )
{
for ( j = 1; j <= i; j++ )
{
printf ( " %c", j + 64 );
}
printf ("\n\t\t\t ");
}
getch ( );
}
Click here to contact us
No comments:
Post a Comment