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 |
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
How do you construct an increment statement or decrement statement in C?
is it possible to create your own header files?
What are local and global variables?
write a program to convert a expression in polish notation (postfix) to inline (normal)
What is difference between array and structure in c?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Is array name a pointer?
What are static functions?
What is switch in c?
How can I increase the allowable number of simultaneously open files?
What are the uses of null pointers?