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 |
How is a null pointer different from a dangling pointer?
What is %s and %d in c?
What is 1f in c?
How do we declare variables in c?
post new interiew question and aptitude test papers
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
plz answer....A program that takes 3 variables e.g a,b,c in as seperate parameters and rotates the values stored so that value goes a to b, b to c and c to a .
Can we declare function inside main?
which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
16 Answers Accenture, Infosys, TCS, Wipro,
while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
what is event driven software and what is procedural driven software?
write aprogram for There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.
1 Answers iGate, Shashi, Source Bits, Subex,