write a program to produce the following output;
ABCDEFGFEDCBA
ABCDEF FEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A
Answer Posted / vinay
main()
{
int i,n=65,m=72,f=0,s=-6;
while(m-->=n)
{s+=4;
for(i=n;i<m;i++)
printf("%c ",i);
if(f==0) ++m;
else
for(i=0;i<s;i++) printf(" ");
for(i=m-1;i>=n;i--)
printf("%c ",i);
printf("\n");f=1;
}
system("pause");
}
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
What does. int *x[](); means ?
What does struct node * mean?
Differentiate between a structure and a union.
What is function what are the types of function?
Write a program to implement queue.
What is header file definition?
What is the difference between null pointer and wild pointer?
cavium networks written test pattern ..
Why is c called a structured programming language?
C program to find all possible outcomes of a dice?
what is the significance of static storage class specifier?
What is the difference between formatted&unformatted i/o functions?
Which driver is a pure java driver
What is the difference between array and linked list in c?
What functions are used in dynamic memory allocation in c?