Предмет: Информатика, автор: tasia200687

Составить программу, которая определяет, принадлежит ли точка с координатами (х , у) заштрихованной области. Координаты точки ввести с клавиатуры

Приложения:

Ответы

Автор ответа: FilNez
3

Python:

x = float(input())

y = float(input())

if (x > 0 and y > 0 and x < 1 and y < 1) or (x <= 0 and y <= 0 and x*x + y*y < 1):

print("Yes")

else:

print("No")

Похожие вопросы
Предмет: Английский язык, автор: id146199229
Задания
Английский язык, 9 класс
*Внимание! Во всех вопросах только один правильный ответ.


1. We _____ over Iceland. Please keep your seatbelts fastened.
A) currently fly
B) currently flies
C) are currently flying
D) currently are flying

2. I hate ______ spiders and any other insects that you find in the bath.
A) a
B) the
C) an
D) ----

3. I’d like ______ coffees, please.
A) a
B) three
C) -----
D) the

4. - Do we have any milk in the fridge?
- No, not _____.
A) many
B) a lot
C) a lot of
D) some

5. The artist Picasso ______ in France for many years.
A) live
B) will live
C) lives
D) lived

6. Have you _______the Taj Mahal in India?
A) ever seen
B) before seen
C) seen ever
D) see

7. There hasn’t been a park here _______ 1999.
A) for
B) since
C) in
D) from

8. Let’s go hiking _____ the weekend
A) on
B) in
C) at
D) between

9. Please _____ the door.
A) open
B) you open
C) will open
D) opens

10. _______ yourself to tea or coffee.
A) pass
B) help
C) bring
D) give

11. Put _______ glasses. The sun is very bright now.
A) up
B) out
C) upon
D) on

12. ______ gets the job, ___ get married next summer.
A) Tony … if he will
B) If Tony ... if we
C) If Tony … we’ll
D) If Tony … we’d

13. What do you want ______ this evening?
A) do
B) to do
C) doing
D) done

14. You _______ forget to buy your mother a birthday present.
A) mustn’t
B) must
C) can
D) don’t have to

15. This ______ chest of drawers was my grandfather’s
A) beautiful, old, wooden
B) wooden, beautiful, old
C) old, wooden, beautiful
D) beautiful, wooden, old