Recursive Program to print multiplication table of a number | Function that print the table of a given number using recursion ; Base Case ; Print the table for current iteration ; Recursive call to next iteration ; Input number whose table is to print ; Function call to print the table
function mul_table ( N , i ) { if ( i > 10 ) return ; document . write ( N + " " + i + " " + N * i + " " ) ; return mul_table ( N , i + 1 ) ; } var N = 8 ; mul_table ( N , 1 ) ;