Q. write a C program to display the character in following fashion:
A
ABA
ABCBA
ABCDCBA
Ans.
#include<stdio.h>
#include<conio.h>
int main()
{
char ch,r,c;
int sp;
printf("Enter last character of triangle : ");
scanf("%c",&ch);
if(ch>=a && ch<=z)
A
ABA
ABCBA
ABCDCBA
Ans.
#include<stdio.h>
#include<conio.h>
int main()
{
char ch,r,c;
int sp;
printf("Enter last character of triangle : ");
scanf("%c",&ch);
if(ch>=a && ch<=z)