Advertisement
fabis_sparks

Julia Task 2

Jun 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. print('Input number:')
  2. num=int(input('Number: ')) # Введём число
  3. if ((num%2)!=0): # если не делится без остатка, то нечет
  4.     print('It is odd number!')
  5. else: print("It is even number!") # если нет, то четное
  6. if ((num%7)==0): # если делится без остатка на 7, то кратное
  7.     print('Our number is a multiple of 7')
  8. else: print('Our number is not a multiple of 7') # если нет, то не кратное
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement