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
Differentiate between new and malloc(), delete and free() ?
Differentiate Source Codes from Object Codes
explain what are pointers?
What is a newline escape sequence?
What is time complexity c?
Why main is used in c?
What is c programing language?
When should volatile modifier be used?
How do you do dynamic memory allocation in C applications?
How do you write a program which produces its own source code as output?
Why does the call char scanf work?
Do you know what are the properties of union in c?
What is the size of a union variable?
Explain how can a program be made to print the name of a source file where an error occurs?
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