Student Help
Monday, 26 January 2015
program for producing following output
void main()
{
int i,j,k=65,g=1;
clrscr();
for(i=1;i<=8;i++)
{
for(j=7;j>=i;j--)
{
printf("%c",k++);
} for(g=2;g<=i;g++)
{
printf(" ");
}
for(j=7;j>=i;j--)
{
printf("%c",k--);
}
printf("\n");
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment