#include <stdio.h> int main () { int gj,mj,xj; for(gj=0;gj<=20;gj++) for(mj=0;mj<=33;mj++) for(xj=0;xj<=100;xj++)\ { if((5*gj+3*mj+xj/3.0==100)&&(gj+mj+xj==100)) printf("gj=%2d,mj=%2d,xj=%2d\n",gj,mj,xj); } return 0; }