习题6.16

来源:互联网 发布:在线相片制作软件 编辑:程序博客网 时间:2024/06/05 19:12
#include <stdio.h>#include <stdlib.h>#include <stdio.h>main(){   int x ,y, z;   for(x=0;x<=20;x++)   {       for(y=0;y<=33;y++)       {           for(z=0;z<=100;z++)           {               if(x+y+z==100&&5*x+3*y+z/3.0==100)               printf("x=%d,y=%d\n",x,y,z);           }       }   }   }

原创粉丝点击