You can do this with a single call, like so:
scanf( "%i %i %i %i", &minx, &maxx, &miny, &maxy);
More Related Contents:
- ‘ ‘, ‘\n’ , scanf() and output screen
- decimal of numbers in c
- scanf() not taking input from console [closed]
- How to read these mixture of data in C
- sscanf Beginner in C
- scanf() leaves the newline character in the buffer
- fgets doesn’t work after scanf [duplicate]
- What is the effect of trailing white space in a scanf() format string?
- How to prevent scanf causing a buffer overflow in C?
- Why does scanf() need “%lf” for doubles, when printf() is okay with just “%f”?
- scanf Getting Skipped [duplicate]
- C – scanf() vs gets() vs fgets()
- Scanf skips every other while loop in C
- Reading in double values with scanf in c
- C skipping one command of a function? [duplicate]
- abnormal behavior of scanf [duplicate]
- using scanf(“%d “) with a space after the %d
- Difference between scanf and scanf_s
- Read no more than size of string with scanf()
- Why does scanf fail with floats?
- Why scanf must take the address of operator
- Input in C. Scanf before gets. Problem
- How do we test the return values from the scanf() function?
- Whitespace before %c specification in the format specifier of scanf function in C
- How to read from input until newline is found using scanf()?
- Why scanf(“%d”, […]) does not consume ‘\n’? while scanf(“%c”) does?
- Wrong format specifiers in scanf (or) printf
- Format specifier in scanf for bool datatype in C
- C: How can I make it so scanf() input has one of two formats?
- Difference between scanf() and fgets()