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 do you mean by c what are the main characteristics of c language?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
I need testPalindrome and removeSpace
#include
How can you find the day of the week given the date?
What is an identifier?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Write a program which returns the first non repetitive character in the string?
What is clrscr in c?
What is the heap in c?
Why dont c comments nest?
Is boolean a datatype in c?
What is hashing in c language?
Is it acceptable to declare/define a variable in a c header?
Dont ansi function prototypes render lint obsolete?
What is the full form of getch?