#include <stdio.h> #include <math.h> int main() { int t, i; double sum1 = 0,sum2=0,sum3=0,sum,denom; for (t = 1; t <= 100; t++) { sum1 = sum1 + t; } for (i=1; i <= 50; i++) { t = pow(i, 2); sum2 = sum2 + t; } for (t = 1; t <= 10; t++) { denom = 1.0/t; sum3 = sum3 + denom; } sum = sum1 + sum2+sum3; printf("%lf\n", sum); return 0; }