last lab
This commit is contained in:
13
labPython/lab1/TheOne1.py
Executable file
13
labPython/lab1/TheOne1.py
Executable file
@@ -0,0 +1,13 @@
|
||||
r1 = 2
|
||||
r2 = 1
|
||||
pi = 3,14
|
||||
|
||||
|
||||
while True:
|
||||
x = float(input())
|
||||
y = float(input())
|
||||
|
||||
if x**2+y**2<=r1**2 and x**2+y**2>=r2**2 and (x >= 0 or y >= 0):
|
||||
print("yes")
|
||||
else:
|
||||
print("no")
|
||||
Reference in New Issue
Block a user