Computer Science, asked by vm757852, 5 months ago

PROGRAM 2: WAP to input a decimal number. If the number is greater than 2.5, then Subtract 2.5 from the number else add 2.5 to the number. Print the result.​

Answers

Answered by valeriy69
0

num = float(input("enter num: "))

if num > 2.5:

print(num - 2.5)

else:

print(num + 2.5)

\small\mathsf\color{lightgreen}useful?\: \color{white}\mapsto\: \color{orange}brainliest

Similar questions