Getting multiple values with scanf() August 6, 2023 by Tarik You can do this with a single call, like so: scanf( "%i %i %i %i", &minx, &maxx, &miny, &maxy);