fork download
  1. #include <stdio.h>
  2.  
  3. int main (void){
  4. int num;
  5. scanf("%*[^?]?");//read till the "?"
  6. while(1==scanf("%d", &num)){
  7. printf("%d\n", num);
  8. }
  9. return 0;
  10. }
Success #stdin #stdout 0s 2296KB
stdin
Preceding characters and question mark ?123

456
stdout
123
456