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

Explain union.

1155


What does. int *x[](); means ?

1050


Which is an example of a structural homology?

1305


What are the benefits of organizational structure?

1005


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1509


Disadvantages of C language.

1086


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1103


There seem to be a few missing operators ..

1034


Do you know the use of fflush() function?

1047


Write a code on reverse string and its complexity.

1017


What is d'n in c?

1104


How can I list all of the predefined identifiers?

967


What is register variable in c language?

1017


Who invented b language?

1379


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2308