You are on page 1of 1

ACTIVITY #7

USING MODULAR APPROACH IN PROGRAM CODE SOLUTIONS

PROBLEMS

1. Write a function that receives two numbers as arguments and returns the value of their
product.
2. Write a function that receives two numbers as arguments. The function should divide the
first number by the second number. Don’t divide the second number if its zero. (Hint Use
an if statement.)
3. Write a program that uses a function to find the average of five type float values entered
by the user.

You might also like