for (;;) { printf("ingresa 2 numeros"); s = scanf("%i" "%i", &x, &y); if (s == 2) { break; } fflush(stdin); } //Aca el resto del codigo