fork download
  1. #include <stdio.h>
  2.  
  3. int main ( void ) {
  4. int x, y;
  5. printf("Enter a coordinate:\n");
  6. scanf( "%d;%d", &x, &y );
  7. /* note that two variables are read */
  8. printf("The coordinate is (%d,%d)\n", x, y );
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5292KB
stdin
1;1
stdout
Enter a coordinate:
The coordinate is (1,1)