A B C D E F G F E D C B A
A B C D E F F E D C B A
A B C D E E D C B A
A B C D D C B A
A B C C B A
A B B A
A A
Answers were Sorted based on User's Feedback
Answer / varun arora
#include <stdio.h>
int main(void)
{
int i, j, k;
char ch;
i = 0;
while(i <= 5)
{
j = 5;
ch = 'A';
printf("\n");
while(j >= i)
{
printf("%c", ch);
j--;
ch++;
}
j = 1;
while(j <= (2 * i - 1))
{
printf(" ");
j++;
}
if(i == 0) ch -= 2;
else ch--;
while(ch >= 'A')
{
printf("%c", ch);
ch--;
}
i++;
}
return 0;
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / karthikeyan.skcet
main()
{
int i,j,x,k,c=0;
for(i=71;i>=65;i--)
{
for(j=65; j<=i;j++)
printf("%5c",j);
if(i==70)
c=5;
for(x=1;x<=c;x++)
printf(" ");
if i==71)
for(k=i-1;k>=65;k--)
printf("%5c",k);
else
for( k=1;k>=65;k--)
print("%5c",k);
c= c+10;
printf("\n");
}
}
| Is This Answer Correct ? | 2 Yes | 4 No |
What are the advantage of c language?
what is constant pointer?
Explain logical errors? Compare with syntax errors.
int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15
Is it fine to write void main () or main () in c?
Why isnt there a numbered, multi-level break statement to break out
C program to find all possible outcomes of a dice?
What is meant by realloc()?
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
What are the average number of comparisons required to sort 3 elements?
Explain what’s a signal? Explain what do I use signals for?
what is the function of pragma directive in c?