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

#include<conio.h>
main()
{ int i,j;
char *ptr="z";
clrscr();
for(i=1;i<=26;i++)
{
for(j=1;j<=i;j++)
{
printf("%s",ptr);
}
--(*ptr);
printf("\n");
}
getch();



}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between new and malloc(), delete and free() ?

686


Differentiate Source Codes from Object Codes

836


explain what are pointers?

631


What is a newline escape sequence?

676


What is time complexity c?

580






Why main is used in c?

598


What is c programing language?

629


When should volatile modifier be used?

562


How do you do dynamic memory allocation in C applications?

636


How do you write a program which produces its own source code as output?

620


Why does the call char scanf work?

626


Do you know what are the properties of union in c?

591


What is the size of a union variable?

609


Explain how can a program be made to print the name of a source file where an error occurs?

698


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

741