199k views
1 vote
To write 10 lines of code on paper:

It must include
2 Print statements
an IF statement
2 integers/floats with a calculation



1 Answer

0 votes

print("enter numbers between 1 and 10")

num1=float(input("enter the first digit to add together"))

num2=float(input("enter the second digit to add together"))

if num1 and num2 >=10:

answer=num1+num2

print(answer)

else:

print("answer not accepted please try again later")

exit()

User JonWarnerNet
by
4.0k points