
Write a program to check whether a number entered by user is even or odd.

Write a program to check whether a number entered by user is divisible by 7 or not.

Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
#Write a program to check whether a number entered by user is even or odd.
num= int(input("Enter the number"))
if num % 2 == 0:
print("the number given is even number")
else:
print("the number given is odd number")
# Write a program to check whether a number entered by user is divisible by 7 or not.
num= int(input("Enter the number"))
if num % 7 == 0 :
print("the number given is divisible by 7")
else:
print("the number given is not divisible by 7")
# Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num= int(input("Enter the number"))
if num % 5 == 0 :
print("Hello")
else:
print("Bye")
1.Write a program to check whether a number entered by user is even or odd.
num = int(input(“enter a number”))
if num%2 == 0 :
print(" number entered is even")
else :
print(“number entered is an odd”)
2 .Write a program to check whether a number entered by user is divisible by 7 or not.
num = int(input(“enter a number”))
if num%7 == 0 :
print(" number entered is divisible by 7")
else :
print(“number entered is NOT divisible by 7”)
 3.Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num = int(input(“Please enter a number”))
if num%5 ==0:
print(“Hello”)
else :
print(“Bye”)
Write a program to check whether a number entered by user is even or odd.
number_1= int(input("Enter the number : "))
if number_1 % 2 == 0:
print("it is even number")
else:
print("it is odd number")
#Write a program to check whether a number entered by user is divisible by 7 or not
number_1= int(input("Enter the number : "))
if number_1 % 7 == 0:
print("It is divisible number")
else:
print("It is not divisible number")
Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
number_1= int(input("Enter the number : "))
if number_1 % 5 == 0:
print("Hello")
else:
print("Bye")
1.)
a=int(input(“enter any number”))
if a%2==0:
print(" %d is even number"%(a))
else:
print(" %d is odd number “%(a))
2.)
b=int(input(“enter any number”))
if b%7==0:
print(” %d is divisible by 7"%(b))
else:
print(" is not divisible by 7"%(b))
3.)
c=int(input(“enter any number”))
if c%5==0:
print(" Hello")
else:
print(“Bye”)
@bharatiyadav14 check this mam if any mistake is there rectify mam
# odd or even checking:
no = int(input("Enter your number: "))
if no % 2 == 0:
print("it's a even no ")
else:
print("it odd number ")
# Checking number 7 divisible no.
no = int(input("enter ypur number: "))
if no % 7 == 0:
print("its is divisible of of 7 ")
else:
print("not divisible of 7 ")
# writing programe Hello if multiple of 5 other wise it shows Bye
no = int(input("Enter your number"))
if no % 5 ==0:
print("Hello Dear: ")
else:
print("Bye Dear: ")
‘’
#Write a program to check whether a number entered by user is even or odd.
num=int(input(“Enter the number:”))
if num%2==0:
print(“The number is even”)
else:
print(“The number is odd”)
#Write a program to check whether a number entered by user is divisible by 7 or not.
number=int(input(“Enter the number:”))
if number % 7==0:
print(“The number is divisble By 7”)
else:
print(“The number is not divisble By 7”)
#Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
number=int(input(“Enter the number:”))
if number % 5==0:
print(“Hello”)
else:
print(“Bye”)
“”
#program to check whether a number entered by user is even or odd.
numr=int(input(“enter numr:”))
if numr%2==0:
print(“it is even numr”)
else:
print(“it is odd numr”)
#program to check whether a number entered by user is divisible by 7 or not.
numr=int(input(“enter numr:”))
if numr%7==0:
print(“it is divisible by 7”)
else:
print(“it not is divisible by 7”)
#program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
numr=int(input(“enter numr:”))
if numr%5==0:
print(“hello”)
else:
print(“bye”)
 Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
Get input from the user
num = int(input("Enter a number: "))
Check if the number is a multiple of five
if num % 5 == 0:
print(“Hello”)
else:
print(“Bye”)

Write a program to check whether a number entered by user is divisible by 7 or not.
Get input from the user
num = int(input("Enter a number: "))
Check if the number is divisible by 7
if num % 7 == 0:
print(“num is divisible by 7.”)
else:
print(“num is not divisible by 7.”)
num = int(input("Enter a number: "))
Check if the number is even or odd
if num % 2 == 0:
print(“num is even!”)
else:
print(“num is odd!”)
 Write a program to check whether a number entered by user is even or odd.
num = int(input("Enter a number: "))
if num % 2 == 0:
print(“num is even!”)
else:
print(“num is odd!”)
 Write a program to check whether a number entered by user is divisible by 7 or not.
num = int(input("Enter a number: "))
if num % 7 == 0:
print(“num is divisible by 7.”)
else:
print(“num is not divisible by 7.”)
 Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num = int(input("Enter a number: "))
if num % 5 == 0:
print(“Hello”)
else:
print(“Bye”)
Blockquote
#1. Write a program to check whether a number entered by user is even or odd.
num = int(input(“Enter a number :”))
if num % 2 == 0:
print(num,“= The number is even.”)
else:
print(num,“The number is odd.”)
#2. Write a program to check whether a number entered by user is divisible by 7 or not.
num = int(input(“Enter a number :”))
if num % 7 == 0:
print(num,“= The number is divisible by 7”)
else:
print(num,“= The number is not divisible by 7”)
#3. Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num = int(input(“Enter a number :”))
if num % 5 == 0:
print(“Hello”)
else:
print(“Bye”)
Blockquote
1) # Write a program to check whether a number entered by user is even or odd
number_input = int(input("Enter the number : "))
if number_input % 2 == 0 :
print("The number",number_input,"is even")
else :
print("The number",number_input,"is odd")
2) # Write a program to check whether a number entered by user is divisible by 7 or not
number_input = int(input("Enter the number : "))
if number_input % 7 == 0 :
print("The number",number_input,"is divisible by 7")
else :
print("The number",number_input,"is not a divisible of 7")
3) # Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num = int(input("Enter the number : "))
if num % 5 == 0 :
print( "Hello")
else:
print( "Bye")
#Write a program to check whether a number entered by user is even or odd.
number=int(input("Enter any number"))
if number%2==0:
print("the given number is even")
else:
print("the given number is odd")
#Write a program to check whether a number entered by user is divisible by 7 or not.
num1=int(input("Enter any number"))
if num1%7==0:
print("the number given is divisible by 7")
else:
print("the number given is not divisible by 7")
#Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num2=int(input("Enter any number"))
if num2%5==0:
print("Hello")
else:
print("Bye")
#Write a program to check whether a number entered by user is even or odd.
no1=int(input("Enter number:"))
if no1%2 ==0:
print("The number is even!")
else:
print("The is odd!")
#Write a program to check whether a number entered by user is divisible by 7 or not.
no=int(input("Enter number:"))
if no%7 ==0:
print("The number is divisible!")
else:
print("The is not divisible!")
#Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
no=int(input("Enter number:"))
if no%5 ==0:
print("Hello!")
else:
print("Bye!")
## Write a program to check whether a number entered by user is even or odd.
number = int(input("Enter any number: "))
if number%2 == 0:
print(number, "is even")
else:
print(number, " is odd")
## Write a program to check whether a number entered by user is divisible by 7 or not.
number = int(input("Enter any number: "))
if number%7 == 0:
print(number, "is divisible by 7")
else:
print(number, "is not divisible by 7")
## Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
number = int(input("Enter any number: "))
if number%5 == 0:
print("Hello")
else:
print("Bye")
num = int(input("Enter the number: "))
if num % 2 ==0:
print("input number is even")
else:
print("input number is odd")
num = int(input("Enter the number: "))
if num % 7 ==0:
print("input number is divisible by 7")
else:
print("input number is not divisible by 7")
num = int(input("Enter the number: "))
if num % 5 ==0:
print("Hello")
else:
print("Bye")
#Write a program to check whether a number entered by user is even or odd.
num = int(input("Enter a number:"))
if num % 2 ==0:
print("The number",num , "is even")
else:
print("The number" ,num , "is odd")
#Write a program to check whether a number entered by user is divisible by 7 or not.
num = int(input("Enter a number:"))
if num % 7 ==0:
print("The number",num , "is divisible by 7")
else:
print("The number" ,num , "is not divisible by 7")
#Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num = int(input("Enter a number:"))
if num % 5 ==0:
print("Hello")
else:
print("Bye")
1./check whether a number is even/odd/
num=int(input(“enter a number”)
if num%2==0:
print(“given num is even”, num)
else:
print(“given num is odd”, num)
2./**program to check entered num id divisble or not **/
ans) num=int(input(“enter number”)
if num%7==0:
print(“enter num is divisible by 7”,num)
else:
print(“enter num is not divisible by 7”,num)
3./program to display “hello” if its multiple of 5,else print " bye"/
num=int(input(“enter number”))
if num%5==0:
print(“hello”)
else:
print(“bye”)
number = int(input("Enter a number: "))
if number % 2 == 0:
print("The number is even.")
else:
print("The number is odd.")
number = int(input("Enter a number: "))
if number % 7 == 0:
print("The number is divisible by 7.")
else:
print("The number is not divisible by 7.")
number = int(input("Enter a number: "))
if number % 5 == 0:
print("Hello")
else:
print("Bye")
 Write a program to check whether a number entered by user is even or odd.
num1= int(input("Enter Number : "))
if num1 % 2 == 0:
print("Even")
else:
print("Odd")
 Write a program to check whether a number entered by user is divisible by 7 or not.
num1= int(input("Enter Number : "))
if num1 % 7 == 0:
print("Divisible by 7")
else:
print("Not divisible by 7")
 Write a program to display “Hello” if a number entered by user is multiple of five, otherwise print “Bye”.
num1= int(input("Enter Number : "))
if num1 % 5 == 0:
print("Hello")
else:
print("Bye")