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 can you find the day of the week given the date?

621


What is zero based addressing?

722


Explain how can you determine the size of an allocated portion of memory?

627


What is the difference between array and structure in c?

573


Is it cc or c in a letter?

570






a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4545


What is file in c preprocessor?

656


Why is sprintf unsafe?

621


What are the back slash character constants or escape sequence charactersavailable in c?

690


Is main is user defined function?

599


Is return a keyword in c?

601


What are terms in math?

596


What is a stream in c programming?

598


What is the general form of #line preprocessor?

590


Are negative numbers true in c?

602