Computer Science, asked by daudc7204, 19 days ago

Write a Python program to sum of two given integers. However, if the sum is between 15 to 20 it will return 20.

Answers

Answered by shubhusaklani11
0

Answer:

a=int(input())

b=int(input())

sum=a+b

if sum >=15 and sum<=20:

print("20")

else :

print(sum)

Explanation:

a , b is taken input by user.

if sum is between 15 and 20

1 st condition executes and 20 is printed

else

the real sum

Answered by sushmithasaddal
0

Answer:

a=int(input("enter first number"))

b=int(input("enter second number"))

c=a+b

if c>=15 and c<=20:

print("sum is :"20)

else:

print("sum is :"c)

Similar questions