write a program to produce the following output;
ABCDEFGFEDCBA
ABCDEF FEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A
Answer Posted / karthikeyan ist year cse skc
in()
{
int i,n=65,m=72,f=0,s=-6;
clrscr();
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;
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
In which header file is the null macro defined?
How can you read a directory in a C program?
Write a program to reverse a linked list in c.
write a c program for swapping two strings using pointer
the question is that what you have been doing all these periods (one year gap)
How to establish connection with oracle database software from c language?
explain what is fifo?
Write a program to generate the Fibinocci Series
What type is sizeof?
Do you have any idea how to compare array with pointer in c?
if p is a string contained in a string?
How can I handle floating-point exceptions gracefully?
I need a sort of an approximate strcmp routine?
Can a pointer be volatile in c?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.