Question: Lab # 1 Q 1 . Write a function that will return the sum of y y and y x . Complete your script by

Lab #1
Q1. Write a function that will return the sum of yy and yx. Complete your script by writing a main part
that will call this function with the values we asked from the user (for x and y).
Restriction: Only for loops can be used within the function.
Q2. Write a function that will return the sum of the odd numbers between x and y. Any of the arguments
in our function, x or y, can be larger. Our function must take these values (x&y) into consideration.
Complete your script by writing a main part that will call this function with the values we asked from the
user (for x and y).
Restriction: A for or a while loop must be used.
 Lab #1 Q1. Write a function that will return the sum

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 Databases Questions!