help with basic aritmetic operations please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

help with basic aritmetic operations please

hello community, can somebody help me please with this code, i dont know why the output of division is wrong. https://code.sololearn.com/c5kTJF9t28vi

25th Apr 2020, 9:35 AM
Aarón Alva
Aarón Alva - avatar
6 Answers
+ 2
moreover you did not declare return type of your functions.. Try this instead: float Div(float dividendo, float divisor) { return dividendo/divisor; } it works...0
25th Apr 2020, 9:47 AM
Alexander Thiem
Alexander Thiem - avatar
+ 2
And your multiply functions is wrong, since it does not return anything...You just have to add the return statement
25th Apr 2020, 9:50 AM
Alexander Thiem
Alexander Thiem - avatar
+ 2
why did you just delete the code???
25th Apr 2020, 10:05 AM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Please design the code output on english
25th Apr 2020, 9:44 AM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Yes... you are missing return statements in function.
25th Apr 2020, 9:50 AM
manojkdm18
manojkdm18 - avatar
0
thanks for all
25th Apr 2020, 10:04 AM
Aarón Alva
Aarón Alva - avatar