fork(2) download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. const int MAX = 7;
  5. char ch = 'F';
  6. int x, y;
  7. for (x = 0; x < MAX; x++)
  8. {
  9. for (ch = 'F', y = 0; y < MAX -(MAX - x); ch--, y++)
  10. {
  11. printf("%c", ch);
  12. }
  13. printf("\n");
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
F
FE
FED
FEDC
FEDCB
FEDCBA