I'm sure the answer will be really easy, however i need to have the output of this inversed so i gethere is my code, please let me know what is wrong with it.Quote:
F
FE
FED
FEDC
FEDCB
FEDCBA
:confused:Code:/* alpha dependant nested loops.c */
#include <stdio.h>
#define ROW 6
int main(void)
{
int row;
char ltr;
for (row = 0; row < ROW; row++){
for (ltr = ('F' - row); ltr <('A' + ROW); ltr++)
printf("%c", ltr );
printf("\n");
}
getchar();
return (0);
}