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
How can I read a binary data file properly?
What is union and structure?
How can I find out if there are characters available for reading?
What the different types of arrays in c?
What are the types of unary operators?
How can I make it pause before closing the program output window?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is a program flowchart and how does it help in writing a program?
What is the advantage of an array over individual variables?
What are derived data types in c?
what is the syallabus of computer science students in group- 1?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is the right type to use for boolean values in c?
How does free() know explain how much memory to release?
Why is a semicolon (;) put at the end of every program statement?