Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / balaji ganesh

main()
{
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 ?    73 Yes 45 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should you use a type cast?

1135


What is a void * in c?

1089


In a header file whether functions are declared or defined?

1137


Differentiate between null and void pointers.

1185


What is structure padding and packing in c?

1092


Discuss the function of conditional operator, size of operator and comma operator with examples.

1171


When should you not use a type cast?

1138


When can you use a pointer with a function?

1094


What is #include stdio h?

1132


What is the purpose of & in scanf?

1087


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1482


What is a pointer value and address in c?

1143


How do you use a pointer to a function?

1100


What are the 3 types of structures?

1045


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2793