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
How can I direct output to the printer?
What are the different types of data structures in c?
How can I delete a file?
What is far pointer in c?
What is a far pointer in c?
How do I read the arrow keys? What about function keys?
Explain threaded binary trees?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Why clrscr is used in c?
what is bit rate & baud rate? plz give wave forms
Write a program to check prime number in c programming?