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
What is wild pointer in c?
Explain about the functions strcat() and strcmp()?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is wrong in this statement? scanf(ā%dā,whatnumber);
How do you write a program which produces its own source code as output?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
How many types of arrays are there in c?
What would be an example of a structure analogous to structure c?
Stimulate calculator using Switch-case-default statement for two numbers
What is the difference between arrays and pointers?
What are c header files?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What is wrong in this statement?
How do you redirect a standard stream?
What is a method in c?