Skip to content

Instantly share code, notes, and snippets.

@Deep18-03
Created March 29, 2020 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deep18-03/17d59314ff4568500fb78b308bfda605 to your computer and use it in GitHub Desktop.
Save Deep18-03/17d59314ff4568500fb78b308bfda605 to your computer and use it in GitHub Desktop.
num=int(input('enter the first number'))
num1=int(input('enter the second number'))
def oddeven(num):
if num%2==0:
print('it is a even number')
elif num%4==0:
print('it is divisible by 4')
else:
print('it is a odd number')
def div(num,num1):
if num1%num==0:
print('it divides evenly')
else:
print(num, "does not divide evenly by", num1)
oddeven(num)
div(num,num1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment