#include
float fun(float,float);
int main()
{
float a=5.07;
float b=7.11;
float c=fun(a,b);
printf(“%.2f”,c);
return 0;
}
float fun(float x,float y)
{
float sum=x+y;
if(sum>12.12)
{
sum=sum+1.0;
sum=sum-0.12;
}
return sum;
}