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 array of structure in c?
How can you find the exact size of a data type in c?
What is the purpose of void in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Explain what is the benefit of using #define to declare a constant?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Why do some versions of toupper act strangely if given an upper-case letter?
Explain what is a 'locale'?
Explain what is the difference between far and near ?
When should the const modifier be used?
Explain what is wrong with this statement? Myname = ?robin?;
What is restrict keyword in c?
Why #include is used in c language?
Why do we use int main?
How to define structures? ·