write a program to produce the following output;
ABCDEFGFEDCBA
ABCDEF FEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A
Answer Posted / guriya kumari
#include<stdio.h>
void main()
{
int i,j,k,l,m;
for(i=0;i<=6;i++)
{
for(k=65;k<=71-i;k++)
printf("%c",k);
for(j=1;j<=i*2-1;j++)
printf(" ");
for(l=71-i;l>=65;l--){
if(l==71)
continue;
printf("%c",l);}
printf("\n");
}
}
| Is This Answer Correct ? | 26 Yes | 8 No |
Post New Answer View All Answers
How can you access memory located at a certain address?
If you know then define #pragma?
What is bubble sort in c?
How can you tell whether two strings are the same?
Write a program to print factorial of given number without using recursion?
why wipro wase
how can use subset in c program and give more example
Explain what is the difference between #include and #include 'file' ?
How does sizeof know array size?
Why we write conio h in c?
What is the main difference between calloc () and malloc ()?
why programs in c are running with out #include
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
When is a null pointer used?
What is hungarian notation? Is it worthwhile?