 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can print natural numbers 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 Tagimus that is available on Google Play. You can connect with me by following these details which are available in front of you. Now I am going to demonstrate you a code which is written in front of you. First statement is a comment which is showing print natural numbers using recursion in C. Then I have included a header file stdr.h. Then a function display is declared which is receiving two integers as argument and its return type is void. Then main function it is containing two variables and an i. i is initialized with one. Then printf and scanf. This printf scanf will receive a value of n till which number we want to print natural numbers. So natural number printing will begin from one and it will end to n. Then display function is called it is having two arguments i and n. i is mentioning beginning of the natural number and n is mentioning ending. Then return zero it is because return type of main is integer that's why this statement is available here. Then you can see definition of display function is available which is having two arguments i and n and this function is called inside its definition here that's why this function is known as recursive function. Here it is containing a base condition which is i w equals to n. So if value of i is equals to n then the last value of i will be displayed here. This return statement will terminate the recursive calling of this function otherwise else will display value of i on console and return statement will call display function again by passing i plus one and n. So initially i is one so this if condition will be false. Suppose n is 10 so i is one and n is 10 if condition is false so control will be transferred to else. Else will display value of i that is one and then display function will be called. So here two and ten will be passed. So next time again base condition will be false so else will print two and display function will pass three and ten. So this way functions will be called in recursive order when this base condition will be achieved the last value of i will be printed and return will terminate the recursive calling of the function. Now i am executing this code you can see the output 1 2 3 4 5 6 7 8 9 10 all natural numbers are printed starting from 1 to 10. So this is the demonstration which is printing all the natural numbers starting from 1 to n on console. I hope you have understood how you can implement this code using recursion in C. If you want to watch more programming related videos you can subscribe my youtube channel. Thank you for watching this video.