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...

create a C program that displays one z,two y's,three x's
until twenty six A's.
plzz answer i need it tomorrow.

Answer Posted / sujata

int Totchar_count =26;
int cur_postion= 26 ;
int diff=0;
char cur_char ='Z';
do
{
diff = (Totchar_count+1) -cur_postion;
while(diff >=1)
{
printf("%c",&c);
diff--;
}
cur_position--;
cur_char--;
}while(c !='Z'-Totchar_count);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is void pointers in c?

1066


What is the process of writing the null pointer?

1067


What does s c mean on snapchat?

1187


Explain what is the purpose of "extern" keyword in a function declaration?

1128


Which one would you prefer - a macro or a function?

1137


What is clrscr in c?

1173


What is abstract data structure in c?

1114


Explain how can I remove the trailing spaces from a string?

1108


In which header file is the null macro defined?

1405


Explain modulus operator.

1090


What does the format %10.2 mean when included in a printf statement?

1712


what is recursion in C

1117


What does sizeof return c?

1131


Write a program to print "hello world" without using a semicolon?

1121


What is the correct code to have following output in c using nested for loop?

1125