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 #include called?

565


What is struct node in c?

612


What are the storage classes in C?

619


What kind of structure is a house?

551


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

613






What is c standard library?

687


Explain how can I pad a string to a known length?

647


How can I remove the trailing spaces from a string?

608


How will you find a duplicate number in a array without negating the nos ?

1637


What are the types of data structures in c?

596


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1888


What does the c in ctime mean?

561


What is %d used for?

580


4. main() { int c=- -2; printf("c=%d",c); }

1364


What is a pointer and how it is initialized?

605