九度教程第83题
C语言源码:[cpp]#include<stdio.h>int main(){int x,y;int n;while(scanf("%d",&n)!=EOF){for(x=0;x<=n;x++)for(y=0;y<=n;y++)if((x*5+y*3+(float)(100-x-y)/3)<=(float)n)printf("x=%d,y=%d,z=%d\n",x,y,100-x-y);}}
补充:软件开发 , C++ ,