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.
There will be 3 inputs
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.
Function Input Argument(s):
(4,7,9)
Function Return Value:
20
Example 2
Function Input Argument(s):
(8,5,4)
Function Return Value: