Question: Write a function called mysum that has an input an integer and as output the sum . Use a for loop to compute the sum.

Write a function called mysum that has an input an integer and as output the sum . Use a for loop to compute the sum. Give the result for and call it x1, and the result for and call it x2.
Document your code:
wirte a sentence to explain the goal of the function
describe the inputs
describe the outputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!