mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-12-19 02:07:27 +08:00
Fixed angle condition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user