Python code

 

# Online Python - IDE, Editor, Compiler, Interpreter

def sum(a, b, c, d, e):
   return (a + b + c + d - e)

a = int(input('Enter 1st number: '))
b = int(input('Enter 2nd number: '))
c = int(input('Enter 3rd number: '))
d = int(input('Enter 4th number: '))
e = int(input('Enter 5th number: '))
print(f'Sum of {a} and {b} and {c} and {d} and {e} is {sum(a, b, c, d, e)}')