how to take multiple variables by scanf code example Example: scanf with multiple variables scanf( "%i %i %i %i", &minx, &maxx, &miny, &maxy);