Driver code
public static void Main ( String [ ] args ) { String str = " Geeks12345for69708" ; int len = str . Length ; if ( allDigits ( str , len ) ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }