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 / d14bbl0

#include<stdio.h>

int main(){
int i,count;

for (i=0;i<26;i++){
for (count = 0;count<i;count++){
printf("%c",(char)('Z'-i));
}
}
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For what purpose null pointer used?

606


Explain what is the benefit of using an enum rather than a #define constant?

714


Explain how can I avoid the abort, retry, fail messages?

586


what do the 'c' and 'v' in argc and argv stand for?

642


What is sizeof int in c?

594






How can I use a preprocessorif expression to ?

598


can we implement multi-threads in c.

657


What is the meaning of && in c?

545


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

762


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

664


What are types of structure?

600


How can you restore a redirected standard stream?

607


What is the purpose of clrscr () printf () and getch ()?

591


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

683


What functions are used for dynamic memory allocation in c language?

597