Driver code
public static void Main ( string [ ] args ) { int runs = 10000 ; int matches = 250 ; int notout = 50 ; int avg = averageRuns ( runs , matches , notout ) ; if ( avg == - 1 ) Console . Write ( " NA " ) ; else Console . Write ( avg ) ; } }