1 2 #include <stdio.h> 3 4 double qq ( void ) 5 {int i; 6 long double a = 0.0, b = 0.0, c = 0.0, d = 0.0, e = 0.0, f = 0.0, g = 0.0, h = 0.0; 7 for (i = 0; i < 10; i++) { 8 a += 1.1; b += 1.2; c += 1.3; d += 1.4; e += 1.5; f += 1.6; 9 g += 1.7; h += 1.8001; 10 } 11 return a+b+c+d+e+f+g+h; 12 } 13 14 int main ( void ) 15 { 16 double r = qq(); 17 printf("answer is %f %d\n", r, (int)r ); 18 return 0; 19 } 20