跳出循环为什么结果是value 0
#include<stdio.h>int main()
{
int x=2,one,two,five,z=1;
for(one=1;one<x*10;one++)
{
for(two=1;two<x*5;two++)
{
for(five=1;five<x*2;five++)
{
if(one+two*2+five*5==x*10)
printf("用%d个一角加%d个两角加%d个五角得到%d元\n",one,two,five,x);
z=0;
break;
}
if(z==0)
break;
}
if(z==0)
break;
}
return 0;
}
--------------------------------
Process exited after 0.02476 seconds with return value 0
请按任意键继续. . .