4 + 3 = 7, but 8 is the output. What is wrong?

Hi @Grasshopper_Ben. I am having a problem with my code. I have a sum() function declared, with 4 and 3 as an argument. But 8 is the output. Here is my code:

I already know that 4 + 3 is 7, but 8 is the output. Please check what is wrong with my code. :confused:

Please answer. :slight_smile:

Did I miss anything?

Great! You are just one step back.
You should try to change the return statement;
return num1+num2

1 Like