168k views
1 vote
Write two functions:a function named sum which takes two integer values as arguments, and returns their sum.a main function which asks the user for two integer values, passes the two values to the sum function, then prints the two values and their sum.the main function then again asks the user for two integer values, passes the two values to the sum function, then prints the two values and their sum.

1 Answer

2 votes
I wrote the program in sublime for visibility. Hope this helps.
Write two functions:a function named sum which takes two integer values as arguments-example-1
User Ryan Heitner
by
5.0k points