{:5_91:}
感谢楼主分享,学习下
激动人心,无法言表!
:big
感恩无私的分享与奉献 :)
激动人心,无法言表!
c
v
强烈支持楼主ing……
激动人心,无法言表!
强烈支持楼主ing……
看一下
看答案
好神奇的样子,学习下
#include<stdio.h>
void main()
{
int x,y,z;
for(x=0; x<=20; x++)
{
for(y=0; y<=33;y++)
{
for(z=0; z<100; z += 3)
{
if( x + y + z == 100 && 5*x + 3*y + z/3 == 100)
{
printf("x=%d,y=%d,z=%d\n",x,y,z);
}
}
}
}
}
看看大案阿
#include "stdafx.h"
#include <iostream>
void main()
{
for (int i=0; i<(100/7+1); i++)
{
if( (100-7*i)%4==0 )
{
std::cout<<"公鸡 x= "<<i<<std::endl;
std::cout<<"母鸡 y= "<<(100-7*i)/4<<std::endl;
std::cout<<"小鸡 z= "<<100-i-(100-7*i)/4<<std::endl<<std::endl;
}
}
getchar();
getchar();
}
强烈支持楼主ing……
强烈支持楼主ing……
楼主加油,鱼C加油!我们都看好你哦!