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 / karthikeyan.cse ist year.skce

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 ?    11 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local variables c?

1028


What is line in c preprocessor?

1068


Explain why can’t constant values be used to define an array’s initial size?

1363


Write a program to show the change in position of a cursor using c

1075


What are the disadvantages of a shell structure?

1357


What is the correct declaration of main?

1217


What is the difference between single charater constant and string constant?

1100


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2376


Why does the call char scanf work?

1215


Is null a keyword in c?

1200


What is difference between Structure and Unions?

1262


Do variables need to be initialized?

1064


What is the purpose of void in c?

1071


Can we declare a function inside a function in c?

1048


Why can’t constant values be used to define an array’s initial size?

1390