getting multiple of 5 python

Solutions on MaxInterview for getting multiple of 5 python by the best coders in the world

showing results for - "getting multiple of 5 python"
Ana
05 Apr 2020
1def isMultipleof5(n):
2
3    while ( n > 0 ):
4        n = n - 5
5
6    if ( n == 0 ):
7        return 1
8
9    return 0