multiple of 4 in python code example
Example 1: how to find the multiples of a number in python
def multiples(m, count):
for i in range(count):
print(i*m)
Example 2: getting multiple of 5 python
def isMultipleof5(n):
while ( n > 0 ):
n = n - 5
if ( n == 0 ):
return 1
return 0