Texts: PYTHON Problem #4 Passing and Returning Variables in Functions
In this exercise, similar to our Smallest program, you'll write a program named Add that has two functions as follows:
* main(): This function will ask the user to enter two integers and pass these values to the function addNumbers(). It will then accept a return from addNumbers() and print a message with that value.
* addNumbers(): This function accepts two integers, finds the sum of these integers, and returns the sum as a single integer.
Sample Output:
Enter the first number: 11
Enter the second number: 13
The sum is 24