ABCDCBA
ABC CBA
AB BA
A A

Answer Posted / vignesh1988i

good question it is :

#include<stdio.h>
#include<conio.h>
void main()
{
int m;
char n,o;
printf("enter the no. of lines :");
scanf("%d",&m);
o='A';
for(int i=0;i<m;i++)
{
n='A';
for(int j=0;j<(m-i);j++)
printf("%c",n++);
for(j=0;j<i;j++)
printf(" ");
for(j=0;j<(m-(i+1));j++)
{
if(j==0||j==1)
{
n='A'+(m-2);
printf("%c",n);
}
else
printf("%c",--n);
}
printf("\n");
}
getch();
}

thnak u

Is This Answer Correct ?    10 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wild pointer in c?

617


Explain about the functions strcat() and strcmp()?

605


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3197


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

735


How do you write a program which produces its own source code as output?

619






Which header file should you include if you are to develop a function which can accept variable number of arguments?

819


How many types of arrays are there in c?

609


What would be an example of a structure analogous to structure c?

583


Stimulate calculator using Switch-case-default statement for two numbers

2458


What is the difference between arrays and pointers?

641


What are c header files?

589


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1913


What is wrong in this statement?

618


How do you redirect a standard stream?

633


What is a method in c?

633