Computer Science, asked by treciamae, 6 months ago

Make a program in Python that accept two integer values. If the first number is higher than the second display the computed difference, otherwise display the computed sum.​

Answers

Answered by nevonj2am
1

Answer:

a=float(input("Enter a number:"))

b=float(input("Enter a number:"))

if(a>b):

      result=a-b

      print(result)

else:

      result=a+b

       print(result)

Explanation:

l've used float in case if u want to input any decimal no.

make sure that result is not entered inside "   "

l do hope this works out 4 u :)

Similar questions