Write a program to construct the image shown below.
999999999
888888888
777777777
666666666
555555555
444444444
333333333
222222222
1111111111
#include <stdio.h>
#include <conio.h>
void main ( )
{
int i, j;
clrscr ( );
printf ("\n\t\t\t Designee of Numbers");
printf ("\n\n\n\t\t\t\t");
for ( i = 9; i >= 1; i-- )
{
for ( j = 9; j >= 1; j-- )
{
printf ("%d", i);
}
printf ("\n\t\t\t\t");
}
getch ( );
}
Click here to contact us
No comments:
Post a Comment