Driver code
public static void main ( String [ ] args ) { int n = 7 , r = 2 , p = 7 ; if ( isDivisible ( n , r , p ) == 1 ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; } }