Question #302125

Develop a python code to accept two numbers from the user to check whether those number



are divisible by both 3 and 5 or not .

Expert's answer

def checkDiv(num1, num2):

array = [num1, num2]

for i in array:

if i % 3 == 0 and i % 5 == 0:

print(i,' is divisible by both 3 and 5')

else:

print(i, 'is not divisible by both 3 and 5')



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS