write a program to produce the following output;
ABCDEFGFEDCBA
ABCDEF FEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A

Answer Posted / smar tass

#include <stdio.h>

int main (void) {
printf('ABCDEFGFEDCBA\nABCDEF FEDCBA\nABCDE EDCBA\nABCD DCBA\nABC CBA\nAB BA\nA A\n');
return 0;
}

Is This Answer Correct ?    8 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to construct a simulator keeping the logical boolean gates in c

1694


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

591


how is the examination pattern?

1567


What are structure types in C?

636


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1039






Calculate 1*2*3*____*n using recursive function??

1488


Why we not create function inside function.

1720


Explain heap and queue.

559


Explain argument and its types.

567


What is the difference between exit() and _exit() function in c?

546


What are actual arguments?

618


What does 4d mean in c?

900


What is gets() function?

640


in linking some of os executables are linking name some of them

1634


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1702