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
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.
Why n++ execute faster than n+1 ?
Why do we use namespace feature?
Why cant I open a file by its explicit path?
How a string is stored in c?
Explain what are the standard predefined macros?
What is your stream meaning?
develop algorithms to add polynomials (i) in one variable
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.
Where are local variables stored in c?
Explain what is the benefit of using enum to declare a constant?
Define macros.
Are global variables static in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is the meaning of 2d in c?