Driver code
public static void main ( String args [ ] ) { int num = 2000 , base1 = 7 ; if ( isRepdigit ( num , base1 ) ) { System . out . print ( " Yes " ) ; } else { System . out . print ( " No " ) ; } } }