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 / guriya kumari

#include<stdio.h>
void main()
{
int i,j,k,l,m;
for(i=0;i<=6;i++)
{
for(k=65;k<=71-i;k++)
printf("%c",k);
for(j=1;j<=i*2-1;j++)
printf(" ");
for(l=71-i;l>=65;l--){
if(l==71)
continue;
printf("%c",l);}
printf("\n");
}
}

Is This Answer Correct ?    26 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the benefit of using const for declaring constants?

1040


In a header file whether functions are declared or defined?

1130


How to write c functions that modify head pointer of a linked list?

992


What does it mean when the linker says that _end is undefined?

1103


What are loops c?

1060


Write a program to check palindrome number in c programming?

1024


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1270


Explain the priority queues?

1084


Implement bit Array in C.

1157


which type of aspect you want from the student.

2168


Explain the use of function toupper() with and example code?

1138


What is the use of bit field?

1186


Why do we use main function?

1186


Explain the use of 'auto' keyword

1125


What are high level languages like C and FORTRAN also known as?

1176