3. Write a program in QBASIC to generate the pattern given below: aB bad cbaF dcbaH edcbaJ
Answers
Answered by
0
Answer:
Following answer is the explanation part
Explanation:
#include<stdio.h>
int main()
{
int i,j,k,l,m;
for(i=0;i<=6;i++)
{
for(k=65;k<=71-i;k++)
printf("%c",k);
for(j=1;j<=i*2-1;j++)
printf(" ");
for(l=71-i;l>=65;l--)
if(l!=71)
printf("%c",l);
printf("n");
}
return 0;
}
Similar questions