Write a program to print:
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c=70,d=70,e=1,i;
char m;
printf(" A B C D E F G H I J K L M\n");
for(a=1;a<=6;a++)
{
for(m=65;m<=c;m++)
printf(" %c",m);
c--;
{
for(b=1;b<=e;b++)
printf(" %c",32);
e=e+(3-1);
}
for(m=d;m>=65;m--)
printf(" %c",m);
d--;
printf("\n");
printf("\n");
}
}
#include<conio.h>
main()
{
int a,b,c=70,d=70,e=1,i;
char m;
printf(" A B C D E F G H I J K L M\n");
for(a=1;a<=6;a++)
{
for(m=65;m<=c;m++)
printf(" %c",m);
c--;
{
for(b=1;b<=e;b++)
printf(" %c",32);
e=e+(3-1);
}
for(m=d;m>=65;m--)
printf(" %c",m);
d--;
printf("\n");
printf("\n");
}
}
No comments:
Post a Comment