Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x1 = int(input("Enter first number:"))
- x2 = int(input("Enter second number:"))
- print(" x", " y")
- for x in range(x1, x2):
- formula = math.sqrt(x * x + 3 * x - 500)
- if formula < 0:
- print("square root cant be negative")
- print(x, round(formula, 2))
- x y
- 15 ***
- 16 ***
- 17 ***
- 18 ***
- 19 ***
- 20 ***
- 21 2.00
- 22 7.07
- 23 9.90
- 24 12.17
- 25 14.14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement