Calculate the multiplication and sum of two numbers

def addmult(n1,n2):
    if(n1*n2>1000):
        return n1*n2
    else:
        return n1+n2

no1=int(input("Enter No 1 :"))
no2=int(input("Enter No 2 :"))

print("Ans="+str(addmult(no1,no2)))

Comments

Popular posts from this blog

1) here are some good programming resources available online:

Print the sum of the current number and the previous number