SyntaxFix
Write A Post
Hire A Developer
Questions
Yes.
int minx, miny, maxx,maxy; do { printf("enter four integers: "); } while (scanf("%d %d %d %d", &minx, &miny, &maxx, &maxy)!=4);
The loop is just to demonstrate that scanf returns the number of fields succesfully read (or EOF).