Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 600 Bytes

divisibility.rst

File metadata and controls

28 lines (17 loc) · 600 Bytes

Divisibility

1) divisibility_under10

divisibility test

Implementation:

import vedicpy as vedic

# divisibility_under10() function takes two arguments,
# first one is dividend and the other one is divisor
vedic.divisibility.divisibility_under10(108, 9)

>>> The number is divisible.

The function doesn't return any value.

The divisibility test is only applicable for divisor less than 10 excluding 1 and 7.