El resultado está claro, pero... faltaría por declarar la librería a la que corresponde la función"abs()", es decir: #include <math.h>.
I think that the result/return is understandable, but... you have not declared the library for the use of the "abs()" function, I mean: #include <math.h>.
Flexing his shredded abs on us! Cool solution!
El resultado está claro, pero... faltaría por declarar la librería a la que corresponde la función"abs()", es decir: #include <math.h>.
I think that the result/return is understandable, but... you have not declared the library for the use of the "abs()" function, I mean: #include <math.h>.
Thanks a lot for your solution!
It's fancy, but it will make a function call and therefore be slower than other functions.
Very smart!
Missing
#include <stdlib.h>
.Fancy
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Dear rndd-AK,
what do You mean by "call instead"? If I understand correctly, using of "if then else" isn't obligatory. My opinion: more solutions - more fun :)
Nevertheless - this is a very good question, see below for the more detailed answer.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please share solve sumatory ecuation
cause the recursion is a bad guy :)
Your solution is not recursive!