Return value in function's
return value in functions.
Functions are not only be used for displaying data and information but they also can be used to create
home values in the function definition actually.
You can use functions for anything you need to perform.
They make your life a lot easier in writing code.
Let's see how open brackets to see how can we return a value in the function.
I will define a function called addition parentheses parameter a parameter b whole and create a variable
total equal variable A plus variable b.
Those variables were declared in the parameters already.
Now I really want total return here means when we call a function after the function form.
It will return the result to the main program.
OK in the main program print edition parentheses 10 comma 5 to pass them to audition definition.
Then try that terminal
wonderful.
It returned the result of the addition 15.
Thank you for watching.