Advertisement
AnnaVolkova

Untitled

Jul 7th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. # _*_ coding: utf-8 _*_
  2. a = int(input('Введите двухзначное число '))
  3. if (a%10==5) or (a//10==5):
  4.     print('Входит')
  5. else:
  6.     print('Не входит')
  7.    
  8.  
  9.  
  10. a = int(input('Введите двухзначное число '))
  11. q = int(input('Введите q '))
  12. if q>=1 and q<=9:
  13.     if (a%10==q) or (a//10==q):
  14.         print('Входит')
  15.     else:
  16.         print('Не входит')
  17. else:
  18.     print('error')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement