#include <stdio.h>
int main(void)
{
int a = 4;
char alpha[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (int i = 0; i < 6; i++);
{
for (int b = 5; b > a; b--)
{
printf("%c", alpha[b]);
}
a--;
printf("\n");
printf("%d\n", a);
}
return 0;
}
I want this code to print like this:
F
FE
FED
FEDC
FEDCB
FEDCBA
but the output it currently showing is this:
F
3
I don't know whether there is any typo cause i have checked a lot i thing i have done something else as wrong. if it's a typo just tell me it's because of typo if don't please help me with this as i am new to c programming language.