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
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What are multibyte characters?
Write a program to show the change in position of a cursor using c
Differentiate between #include<...> and #include '...'
What is malloc return c?
What's a good way to check for "close enough" floating-point equality?
Can a local variable be volatile in c?
What is the difference between malloc() and calloc() function in c language?
what is uses of .net
where are auto variables stored? What are the characteristics of an auto variable?
Can we declare a function inside a function in c?
What is %s and %d in c?
Do you know the use of 'auto' keyword?
shorting algorithmS
What is the difference between call by value and call by reference in c?