#include<stdio.h>
int main(void)
{
int m,n,i;
double y;
y=1;
printf("Enter m,n:");
scanf("%d%d",&m,&n);
for(i=m;i<=n;i++){
y=y+(i*i+1/i);
}
printf("y=%.2f",y);
return 0;
}
#include<stdio.h>
int main(void)
{
int m,n,i;
double y;
y=1;
printf("Enter m,n:");
scanf("%d%d",&m,&n);
for(i=m;i<=n;i++){
y=y+(i*i+1/i);
}
printf("y=%.2f",y);
return 0;
}