硬币组合 假设一堆由1元、5角、1角组成的硬币总面值为0.5元~3元中任意钱数

为什么最后无输出结果
#include <stdio.h>
#include <stdlib.h>

int main()
{
int x,y,z;
float n;
scanf("%f",&n);
for(x=0;x<=3;x++)
for(y=0;y<=6;y++)
for(z=0;z<=30;z++)
{
if((1.0x+0.5y+0.1*z)==n)
printf("(%d,%d,%d)\n",x,y,z);

               }
return 0;

}

x y z要变为浮点型

我的也是