第1个回答 2007-12-29
#include<stdio.h>
main()
{
int one,two,five;
for(one = 0; one< 150;one++)
for(two= 0;two< 75;two++)
for(five=0;five< 30 ;five++)
{
if(one+two+five>=100&&one+2*two+5*five==150)
printf("one:%d-two:%d-five:%d\n",one,two,five);}
getch();
}
呵呵 我也不太懂 帮你找人问的
运行下看看吧本回答被提问者采纳