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

stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1849


Why n++ execute faster than n+1 ?

1839


Why do we use namespace feature?

577


Why cant I open a file by its explicit path?

593


How a string is stored in c?

583






Explain what are the standard predefined macros?

647


What is your stream meaning?

603


develop algorithms to add polynomials (i) in one variable

1736


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

1575


Where are local variables stored in c?

570


Explain what is the benefit of using enum to declare a constant?

586


Define macros.

781


Are global variables static in c?

673


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1176


What is the meaning of 2d in c?

607