fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int number_of_lines;
  5. int c = scanf("%u", &number_of_lines);
  6. if (c!=1) return 1; //1 variable read
  7.  
  8. for( ; number_of_lines>0; --number_of_lines) {
  9. unsigned n, m;
  10. c = scanf("%u %u", &n, &m);
  11. if (c!=2) return 1; //2 variables read
  12. //process n and m here
  13. printf("%u %u\n", n, m);
  14. }
  15. }
Success #stdin #stdout 0s 2888KB
stdin
2
1 3
4 7
stdout
1 3
4 7