I have a problem to do for class. We are to create a function named mult() that accepts two floating-point numbers as parameters, multiplies the two numbers, and outputs them. I wrote the program however I keep getting an error code,telling me the function does not take 0 arguments. Please help me.
That is because you said by definition of mult (see parameter list), you need 2 arguments, x and y in this case.
I mean, it is like i would tell to you: "Hey you, multiply!" You would respond: "What should i multiply? you did not give me any numbers!". The compiler just does the same now. The function multiply do not take 0 (or no) arguments. Give him some numbers and he will multiply. Something like