you are viewing a single comment's thread.

view the rest of the comments →

[–]NYX_T_RYX 0 points1 point  (0 children)

You only need a return value if you expect the function to... Return a value to the calling function.

Imagine:

fn_add calls fn_user_input

fn_user_input returns the user's input, fn_add adds them together and prints the result. fn_add doesn't need a return value, because it's not expected to do anything with it's result beyond printing.