#include<stdio.h> #include<math.h> #define zero 0.000001 int main() { int x,y; double a,b; for(x=0;x<=150;x++) { y=150-x; a=1.0*32/y; b=1.0*24.5/x; if((a*x-b*y)>=zero*-1 && (a*x-b*y)<=zero) printf("x=%d;y=%d\n",x,y); } return 0; }