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
What is #include called?
What is struct node in c?
What are the storage classes in C?
What kind of structure is a house?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is c standard library?
Explain how can I pad a string to a known length?
How can I remove the trailing spaces from a string?
How will you find a duplicate number in a array without negating the nos ?
What are the types of data structures in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What does the c in ctime mean?
What is %d used for?
4. main() { int c=- -2; printf("c=%d",c); }
What is a pointer and how it is initialized?