mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-24 18:08:39 +00:00
Fixed angle condition
This commit is contained in:
parent
db7db3b370
commit
132e4952ee
@ -106,7 +106,7 @@ if __name__ == "__main__":
|
||||
angle = float(input("angle: "))
|
||||
|
||||
# Ensure valid angle
|
||||
if angle > 90 or angle <= 0:
|
||||
if angle > 90 or angle < 1:
|
||||
print("Error: Invalid angle. Range is 1-90 degrees.")
|
||||
|
||||
# Ensure valid velocity
|
||||
|
Loading…
x
Reference in New Issue
Block a user