#include<stdio.h>
#include<stdlib.h>
main()
{
float num,a,b,c,d,e,f;
do
{
scanf("%f",&num);
getchar();
}
while (num>=0.75);
a=0.0;
b=0.0;
c=0.0;
d=0.0;
e=0.0;
f=0.0;
if (num%2.0!==0)
{
a=num/2.0;
num=num%2.0;
if (num%1.0!=0)
{
b=num/1.0;
num=num%1.0;
if (num%0.50!==0)
{
c=num/0.50;
num=num%0.50;
if (num%0.20!==0)
{
d=num/0.20;
num=num%0.20;
if (num%0.10!==0)
{
e=num/0.10;
num=num%0.10;
if (num%0.05!==0)
{
f=num/0.05;
}
}
}
}
}
}
change=a+b+c+d+e+f
printf("the change :%f\n",resta);
getchar();
}
what is wrong with my program?