#include
#include
float proc(float h)
{
float t;
t=h*1000%10;
if(t>=5)
h=h*100+1;
else
h=h*100;
return (float)h/100;
}
void main()
{
float f;
system("CLS");
printf("Enter f: ");
scanf("%f",&f);
printf("The original data is : ");
printf("%f\n\n",f);
printf("The result :%f\n",proc(f));
}