Computer Science, asked by misty3669, 19 days ago

write a program to input a number into function named double the function double thenumber and returns the result.​

Answers

Answered by pp5886608
1

Answer:

def sum(x,y):

return x+y

def avg(x,y):

return sum(x,y)//2

a= int(input("Enter first number:"))

b= int(input("Enter second number:"))

print("Sum of the given two numbers is: ", sum(a,b))

print("Average of the given numbers is: ", avg(a,b))

Answered by sofianhendrik
1

Answer:

def sum(x,y):

return x+y

def avg(x,y):

return sum(x,y)//2

a= int(input("Enter first number:"))

b= int(input("Enter second number:"))

print("Sum of the given two numbers is: ", sum(a,b))

print("Average of the given numbers is: ", avg(a,b))

Explanation:

Similar questions