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