#include
float fun(float,float);
int main()
{
float a;
printf(“enter 1st number :”);
scanf(“%f”,&a);
float b;
printf(“enter 2nd number :”);
scanf(“%f”,&b);
float c=fun(a,b);
printf(“%.2f”,c);
return 0;
}
float fun(float x,float y)
{
float sum=x+y;
int z=(int)sum;
if(sum-z > 0.12)
{
sum=sum+1.0;
sum=sum-0.12;
}
return sum;
}