write a program to produce the following output;
ABCDEFGFEDCBA
ABCDEF FEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A
Answer Posted / karthikeyan.cse ist year.skce
main()
{
int i,n=65,m=72,f=0,s=-6;
clrscr();
while(m-->=n)
{
s+=4;
for(i=n;i<m;i++)
{
printf("%c ",i);
}
}
if(f==0)
{ ++m;
}
else{
for(i=0;i<s;i++) printf(" ");
{
for(i=m-1;i>=n;i--)
{
printf("%c ",i);
}
}
printf("\n");f=1;
}
}
getch();
Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
What is the purpose of clrscr () printf () and getch ()?
What is f'n in math?
What is abstract data structure in c?
what is stack , heap ,code segment,and data segment
How is a pointer variable declared?
What are inbuilt functions in c?
What is the best way to comment out a section of code that contains comments?
In C language, a variable name cannot contain?
What does typeof return in c?
What is a macro?
Is that possible to store 32768 in an int data type variable?
What is sizeof int?
explain what are pointers?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Explain what are preprocessor directives?