URI 1005
Solution
Code: Using Python
#call function
def avg(A,B):
#logic
avg=((A*3.5)+(B*7.5))/(3.5+7.5)
return ("MEDIA = {:0.5f}".format(avg))
#input
A=float(input())
B=float(input())
#output
print(avg(A,B))
URI 1005
Solution
Code: Using Python
#call function
def avg(A,B):
#logic
avg=((A*3.5)+(B*7.5))/(3.5+7.5)
return ("MEDIA = {:0.5f}".format(avg))
#input
A=float(input())
B=float(input())
#output
print(avg(A,B))