 Hello friends, I am Sanjay Gupta. In this video I am going to demonstrate you how you can print table of a number using recursion in C. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at bottom right corner of this video. You can download my app Techimus that is available on Google Play. You can connect with me by following these details which are available in front of you. You can see a code which is written in front of you. Here first statement is a comment which is having a contained print table of a number using recursion in C. Then I have included a header file stda.h. Then a function is declared whose name is displayed. Its return type is void and it is having two arguments of integer type. Then main function it is having two variables n and i. i is initialized by 1. Then printf is asking for value of n whose table you want to print. Then that number will be stored inside n. Then display function is called it is passing value of i and n into the definition of function. This is definition of display function. So here i will be receiving value of i and n will be receiving value of n passed by this function call. In this display function definition display function is called. So if we call a function inside its definition then that function is called as a recursive function. So this calling statement is recursive function call. Here base condition is available for termination of this recursion process. So if value of i is equals to 11 then return will terminate this function execution. Otherwise else will print value of n into i and then display function will be called. It will pass i plus 1 and value of n for the next function calling. So this display call will call this display definition and this process will repeat till this condition is false. If this condition is true then this recursive process will be terminated. I have compared i with 11 because whenever you want to print table of a number then 10 digits you have to print. So whenever value of i is 10 then that condition will be true but if value of i is 11 then this condition will be terminated. Now I am executing this code. You can see it is printing table of 5 properly. If you want to print table in table format like this I am showing the output so that you can identify what I have done. I have done 10 into 1 equals to 10, 10 into 2 equals to 20. This is the actual table format. So I have changed this printf statement. I have used 3 times cross indy then n comma i comma n into i. By using this I have printed the table in table format. You can see it here. So friends I hope you have understood how you can print table of a number using recursive NC with the help of this code. If you want to watch more programming related videos you can subscribe my YouTube channel. Thank you for watching this video.