Write a program to input a number and check whether it is divisible by 2 and 3 both.
Answers
Answered by
1
Answer:
In python,
Explanation:
Number= int(input("enter a number")
if Number mod 6=0:
Print("Divisible by 2 and 3")
Elif:
Print("Not divisible by 2 and 3")
Answered by
1
In python,
num = int(input(‘Enter the Number’))
if (num/2 and num/3) == 0:
print(‘Number you entered is divisible by 2&3’)
num = int(input(‘Enter the Number’))
if (num/2 and num/3) == 0:
print(‘Number you entered is divisible by 2&3’)
Similar questions