6.16

来源:互联网 发布:python隐马尔可夫模型 编辑:程序博客网 时间:2024/06/03 20:53
#include <stdio.h>#include <stdlib.h>int main(){    int x,y,z;    for(x=0;x<100/5;x++)    {        for(y=0;y<100/3;y++)            for(z=0;z<100;z+=3)        {            if((x*5+y*3+z/3)==100)            {                printf("公鸡x:%d,母鸡y:%d,小鸡:%d\n",x,y,z);            }        }    }    getchar();}

这里写图片描述