answersLogoWhite

0


Best Answer

# include main(){ int n=65,s=1,i,j,k,l; for(i=1;i<=6;i++){ printf("%c ",n); n++;} printf("%c ",n); n--; for(j=1;j<=6;j++){ printf("%c ",n); n--;} printf("\n\n"); for(i=6;i>=1;i--){ n=65; for(j=1;j<=i;j++){ printf("%c ",n); n++;} n--; for(k=1;k<=s;k++){ printf(" ");} for(l=1;l<=i;l++){ printf("%c ",n); n--;} s=s+2; printf("\n\n"); }}

Or:

# include

int main (void)

{ puts ("ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA"); return 0; }

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

ASCII VALUE OF A=65 #include

#include

main()

{

char i,k,m,h=71;

int g=1;

float j;

for(i=71;i>=65;i--)

{

for(m=65;m<=i;m++)

{

printf("%c",m);

} for(j=2;j<=g;j++)

{

printf("--");/*two spaces are left*/

}

g++;

printf("\b");

for(k=h;k>=65;k--)

{

printf("%c",k);

} h--;

printf("\n");

}

getch();

} Output will be: ABCDEFGFEDCBA

ABCDEF--FEDCBA

ABCDE-----EDCBA

ABCD--------DCBA

ABC-----------CBA

AB--------------BA

A-----------------A where ----- is space by janani sundar....

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

#include

int main (void)
{

puts ("abcdefgfedcba abcdef fedcba abcde edcba abcd dcba abc cba ab ba a a");

}
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to write a program to generate the following pattern abcdefgfedcba abcdef fedcba abcde edcba abcd dcba abc cba ab ba a a?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does interpreter generate an object program from the source program?

No, that's what the compiler does.


How do I write a program to do the following... Write a VBA code to take the TippingBucketData.txt file and process it to generate an output file.?

Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.


Program to generate a pattern a aba abcba?

#include&lt;iostream.h&gt; void main() { cout&lt;&lt;' '&lt;&lt;' '&lt;&lt;"a"&lt;&lt;'\n'; cout&lt;&lt;' '&lt;&lt;"a"&lt;&lt;"b"&lt;&lt;"a"&lt;&lt;'\n'; cout&lt;&lt;'a'&lt;&lt;'b'&lt;&lt;'c'&lt;&lt;'b'&lt;&lt;'a'&lt;&lt;"\n"; }


How many people did the new deal program help or how much money did this program generate?

w


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Is there a c program to generate the series a a b a b c?

You need to be more specific in what you are asking. For example, the following meets your requirements: int main() { printf("a a b a b c\n"); return 0; }


Is there a program that you can type your own words and it will generate an essay paper for you?

Microsoft Word.


Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


What program can one download that will generate auto leads?

TeleLeads Pro has a program that they offer that will generate auto leads. They offer the program specifically for certain countries like the U.S.A., Canada, U.K., Australia, Netherlands and more. The Canadian version of the software is available for $30 U.S.


Program to generate tokens from a given expression string?

a promlem to solve an equation or a assigment


Which of the following commands would run program in the background?

program &gt;bg


How do you generate quantum program using spss?

The Question is slightly unclear. If you have a SPSS file and you want to generate the Quantum program you can use the utility called spss2qt. This is a small program in SPSS that will convert the SPSS data into ASCII data with a Quantum program with proper column location. However you will have to modify the program to display output to your requirement as this utility will give very basic quantum program for the data. Regards Sachin You can reach me on sacsar@yahoo.com