#include <stdio.h>
#include <math.h>
int main()
{
double a,b,h,f;
int n;
scanf("%lf %lf %d",&a,&b,&n);
if((n<=0)||(a==b))printf("Введенное 'n' не натуральное или введены два одинаковых числа\n");
else
if (a>b)printf("Первое введеное число больше второго");
else
{
h=(b-a)/n;
f=0;
for(int i=1;i<=n;i++)
{
f+=(a+(i-0.5)*h)/(1+((a+(i-0.5)*h)*(a+(i-0.5)*h)));
}
printf("%le ",f*h);
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CmludCBtYWluKCkKewoJZG91YmxlIGEsYixoLGY7CglpbnQgbjsKCXNjYW5mKCIlbGYgJWxmICVkIiwmYSwmYiwmbik7CglpZigobjw9MCl8fChhPT1iKSlwcmludGYoItCS0LLQtdC00LXQvdC90L7QtSAnbicg0L3QtSDQvdCw0YLRg9GA0LDQu9GM0L3QvtC1INC40LvQuCDQstCy0LXQtNC10L3RiyDQtNCy0LAg0L7QtNC40L3QsNC60L7QstGL0YUg0YfQuNGB0LvQsFxuIik7CgllbHNlCglpZiAoYT5iKXByaW50Zigi0J/QtdGA0LLQvtC1INCy0LLQtdC00LXQvdC+0LUg0YfQuNGB0LvQviDQsdC+0LvRjNGI0LUg0LLRgtC+0YDQvtCz0L4iKTsKCWVsc2UKCQl7CgkJCWg9KGItYSkvbjsKCQkJZj0wOwkJCQkKCQkJZm9yKGludCBpPTE7aTw9bjtpKyspCgkJCQl7CgkJCQkJZis9KGErKGktMC41KSpoKS8oMSsoKGErKGktMC41KSpoKSooYSsoaS0wLjUpKmgpKSk7CgkJCQl9CgkJCXByaW50ZigiJWxlICAiLGYqaCk7CgkJfQoJcmV0dXJuIDA7Cn0=