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
Is c is a high level language?
how to find anagram without using string functions using only loops in c programming
What’s the special use of UNIONS?
Explain how can you tell whether two strings are the same?
How to draw the flowchart for structure programs?
What is indirection?
The difference between printf and fprintf is ?
Explain bit masking in c?
What are the properties of union in c?
Explain low-order bytes.
What are valid operations on pointers?
When is a void pointer used?
How can I recover the file name given an open stream?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are two dimensional arrays alternatively called as?