为什么总是执行 a+=1;请指教,该怎么改
#include<stdio.h>#include<math.h>
int main()
{
int n,x,y,a;
double c;
while( scanf( "%d%d%d",&n,&x,&y ) != EOF )
{
c = n * y * 0.01 - x;
a = ( int )c;
if( c - a * 1.0 > 0.0 )
a += 1;
printf( "%d\n",a );
}
return 0;
}