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.
Answers were Sorted based on User's Feedback
Answer / sujata
int Totchar_count =26;
int cur_postion= 26 ;
int diff=0;
char cur_char ='Z';
do
{
diff = (Totchar_count+1) -cur_postion;
while(diff >=1)
{
printf("%c",&c);
diff--;
}
cur_position--;
cur_char--;
}while(c !='Z'-Totchar_count);
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / d14bbl0
#include<stdio.h>
int main(){
int i,count;
for (i=0;i<26;i++){
for (count = 0;count<i;count++){
printf("%c",(char)('Z'-i));
}
}
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vadivelt
Qn seems to be not very clear.. Could u pls post it clearly
so that, can answer.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / 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 |
What is the purpose of Scanf Print, getchar, putchar, function?
Describe newline escape sequence with a sample program?
#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?
User define function contain thier own address or not.
Why is c called "mother" language?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
which one low Priority in c? a)=,b)++,c)==,d)+
Explain why can’t constant values be used to define an array’s initial size?
Write a program to write a given string in maximum possibilities? i.e str[5]="reddy"; i.e we can write this string in 120 ways for that write a program
int i=~0; uint j=(uint)i; j++; printf(“%d”,j);
Method Overloading exist in c ?