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

Введите координаты двух точек. Напишите программу, определяющую в какой четверти находятся точки?

Ответы

Автор ответа: РоманКурбатов
0
  • x = int(input())
  • y = int(input())
  • if x == 0 and y == 0:
  •  print ("")
  • elif x > 0:
  •  if y > 0:
  •    print ("1 четверть")
  •  else:
  •    print ("4 четверть")
  • else:
  •  if y > 0:
  •    print ("2 четверть")
  •  else:
  •    print ("3 четверть")
Похожие вопросы
Предмет: Английский язык, автор: ionova79046194669
If+ Past Perfect, would + have + V3.

1. If I had known that you were in hospital I (visit)………………………………………….… you.
2. If you (arrive)……………………………………... ten minutes earlier you would have got a seat.
3. You would have seen my garden at its best if you (be) ……………………………here last week.
4. I shouldn't have believed it if I (not see) …………………………………...it with my own eyes.
5. If he had slipped he (fall) ……………………………………………………………...500 metres.
6. If I (had)……………………………………………………... a map I would have been all right.
7. If I (know)…………………………………………. that you were coming I'd have baked a cake.
8. I (offer) ………………………………………………to help him if I had realized that he was ill.
9. If you had left that wasp alone it (not sting) ………………………………………………….you.
10. If I (realize) ……………………….what a bad driver you were I wouldn't have come with you.
11. If I had realized that the traffic lights were red I (stop)………………………………………….
12. If you had told me that he never paid his debts I (not lend) ……………………him the money.
13. If you (not sneeze)………………………………… he wouldn't have known that we were there.
14. If you (put) …………………….some mustard in the sandwiches they would have tasted better.
15. The hens (not get) ………………………………………into the house if you had shut the door.
16. If he had known that the river was dangerous he (not try)……………………. to swim across it.
17. If you (speak)……………………………………... more slowly he might have understood you.
18. If he had known the whole story he (not be)…………………………………………... so angry.
19. I wouldn't have eaten it if I (know) …………………………………..that there was ginger in it.
20. If I (try) ……………………………………………...again I think that I would have succeeded.
21. You (not get) …………………………………...into trouble if you had obeyed my instruc-tions.
22. If you hadn't been in such a hurry you (not put) ………………………….sugar into the sauce instead of salt.
23. If I (be) ………………………………..ready when he called he would have taken me with him.
24. She had had a headache, otherwise she (come) …………………………………………with us.
25. If she had listened to my directions she (not turn) …………………………………….down the wrong street.
Предмет: Алгебра, автор: Аноним