-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask5_2.py
More file actions
37 lines (30 loc) · 1.06 KB
/
Copy pathtask5_2.py
File metadata and controls
37 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /usr/bin/env python3
import sys
width = input("Введіть ширину дверей : ")
height = input("Введіть висоту дверей: ")
widthBox = input("Введіть ширину коробки : ")
heightBox = input("Введіть висоту коробки : ")
lengthBox = input("Ведіть довжину коробки : ")
if heightBox <= height:
if widthBox <= width:
print("Коробка проходить")
elif lengthBox <= width:
print("Коробка проходить")
else:
print("Коробка не проходить")
elif widthBox <= height:
if heightBox <= width:
print("Коробка проходить")
if lengthBox <= width:
print("Коробка проходить")
else:
print("Коробка не проходить")
elif lengthBox <= height:
if heightBox <= width:
print("Коробка проходить")
if widthBox <= width:
print("Коробка проходить")
else:
print("Коробка не проходить")
else:
print("Коробка не проходить")