Language
Compiler
Options
$ introduce n
sum from biggest to smallest is 1.6251327336215291
and its error 0.0198013332266969
sum from smallest to biggest is 1.6251327336215293
and its error 0.0198013332266966
Exit Code:
0
Author
anonymous
about 8 years ago
Author
anonymous
about 8 years ago
$ prog.c: In function 'main':
prog.c:17:8: warning: variable 'terms' set but not used [-Wunused-but-set-variable]
double terms[n];
^~~~~
prog.c:11:14: warning: unused variable 'c' [-Wunused-variable]
double x, y, c, b;
^
prog.c:9:8: warning: unused variable 'r' [-Wunused-variable]
double r=0;
^
introduce n
sum from biggest to smallest is 1.6251327336215291
and its error 0.0198013332266969
sum from smallest to biggest is 1.6251327336215293
and its error 0.0198013332266966