Advertisement
fabis_sparks

Maria Task 2

Mar 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. print('Input size of BOX:')
  2. A=int(input('A= '))
  3. B=int(input('B= '))
  4. C=int(input('C= '))
  5. print('Input size of DOOR:')
  6. M=int(input('M= '))
  7. K=int(input('K= '))
  8. count=0
  9. # AB side
  10. if (A<K and B<M):
  11.     print('BOX can enter in the DOOR horizontally by AB side')
  12. else: count=count+1
  13. if (B<K and A<M):
  14.     print('BOX can enter in the DOOR vertically by AB side')
  15. else: count=count+1
  16. # AC side
  17. if (A<M and C<K):
  18.     print('BOX can enter in the DOOR horizontally by AC side')
  19. else: count=count+1
  20. if (C<M and A<K):
  21.     print('BOX can enter in the DOOR vertically by AC side')
  22. else: count=count+1
  23. # BC side
  24. if (B<K and C<M):
  25.     print('BOX can enter in the DOOR horizontally by BC side')
  26. else: count=count+1
  27. if (C<K and B<M):
  28.     print('BOX can enter in the DOOR vertically by BC side')
  29. else: count=count+1
  30. # Global
  31. if (count==6):
  32.     print('Box can not enter in the door')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement