Question 1: Obtaining the (selective) sum of 3 numbers

Given 3 numbers, obtain the sum of these numbers. However, if the number is a multiple of 5, that number is subtracted from the other numbers.

Write a python program which accepts inputs a, b and c from the user, and compute the sum of the 3 numbers, unless the number is a multiple of 5 in which the number is subtracted from the sum.

Function Input Argument(s):

There will be 3 inputs

  1. a (integer)
  2. b (integer)
  3. c (integer)

Function Return Value:

The function should return a number representing the sum of the 3 inputs. If the input is a multiple of 5, that number is subtracted from the other numbers.

Example 1

Function Input Argument(s):

(4,7,9)

Function Return Value:

20

Example 2

Function Input Argument(s):

(8,5,4)

Function Return Value: