lewisthebrain
lewisthebrain lewisthebrain
  • 24-01-2020
  • Computers and Technology
contestada

To write 10 lines of code on paper:

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

​

Respuesta :

darianamin
darianamin darianamin
  • 24-01-2020

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()

Answer Link

Otras preguntas

What finally makes Terry ask his father about his experience in the war
The two factors that are most important in determining the density of air are:
what is the sum of 114+88+78the sum of
Which statement uses simple, vivid language? a. The bright reds and oranges of the sunset caught my attention as I relaxed this evening. b. I saw the beautiful
PLEASE HELP!!!!!!!!! How do you do the substitution method?! Thank you!
Can u answer all please quickly
Which of the following must be true of a population in genetic equilibrium?
A​ pyramid-shaped building is 63 ft tall with a square base that is 81 ft on each side. What is the volume of the building in cubic​ feet? In cubic​ yards?
Solve using a proportion. A cyclist completes a 100 mile race in 3 hours 45 minutes. What is the average speed, in miles per hour, of the cyclist? A) 0.0345 mph
What happens to the Total Energy as the spring bounce?