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 void pointers in c?
What is the process of writing the null pointer?
What does s c mean on snapchat?
Explain what is the purpose of "extern" keyword in a function declaration?
Which one would you prefer - a macro or a function?
What is clrscr in c?
What is abstract data structure in c?
Explain how can I remove the trailing spaces from a string?
In which header file is the null macro defined?
Explain modulus operator.
What does the format %10.2 mean when included in a printf statement?
what is recursion in C
What does sizeof return c?
Write a program to print "hello world" without using a semicolon?
What is the correct code to have following output in c using nested for loop?