Python - Using Modulo to Test Numbers for Divisibility by 3, 5 and Both 3 & 5

by matt392 in Circuits > Software

45 Views, 0 Favorites, 0 Comments

Python - Using Modulo to Test Numbers for Divisibility by 3, 5 and Both 3 & 5

PythonModulo.png

A Python program that tests numbers for divisibility by 3, 5 and both 3 & 5 using the Modulo function.
Please note that one needs to test for both 3 & 5 before testing just 3 or 5.
Program is attached as a Python file and PDF file