fork download
  1. #include <stdio.h>
  2.  
  3. int main (void) {
  4. FILE *p;
  5. char a, b, c;
  6.  
  7. p = stdin;//change for ideone//fopen("numbers.txt", "r");
  8.  
  9. while(fscanf(p, " %c %c %c\n", &a, &b, &c)==3){
  10. printf("%c %c %c\n", a, b, c);
  11. }
  12. fclose(p);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 2168KB
stdin
 2 + 3
 5 + 6
 6 + 7
stdout
2 + 3
5 + 6
6 + 7