fork download
  1. /* details under http://stackoverflow.com/a/38571266/2932052 */
  2. #include <stdio.h>
  3.  
  4. char text[10][80] = {
  5. "0", "Zero",
  6. "1", "One",
  7. "2", "Two",
  8. "3", "Three",
  9. "4", "Four",
  10. };
  11.  
  12. int main(void) {
  13. int i;
  14. for (i=0; i<10; i++) {
  15. printf( (i&1) ? "%s\n" : "%s\t", text[i]);
  16. }
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
0	Zero
1	One
2	Two
3	Three
4	Four