how to set scanf to accept single value although with two placeholders code example Example: scanf with multiple variables scanf( "%i %i %i %i", &minx, &maxx, &miny, &maxy);