 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can print cubes of natural numbers using recursion in C. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app TechMS that is available on Google Play. You can connect with me by following these details which are available in front of you. Now coming on to the code, you can see the first statement which is a comment. It is showing print cubes of natural numbers using recursion in C. Then a header file stdo.h is included. Then a function is declared which is display. Its return type is void. It will receive two arguments as input of integer type. Then main function is defined which is having two variables and an i. i is initialized with one because natural number starts from one. Then printf and scanf are returned. Printf will print enter value of n message on console. The entered value will be received by scanf inside n variable. Then I have called display function. It is passing two arguments i and n. So when we call a function, control automatically transfers to its definition. Then return statement is available because return type of main is int. So return zero is available here. So whenever we call display function, value of i and n are passed to this definition. Here in this definition, value of i is received inside i and n is received inside n variable. Then inside this definition, you can see display function is called. That's why it is converted into recursive function because whenever a function is called inside its definition, that function is known as recursive function. To terminate recursive function, a base condition is required. Here base condition is i equals to n. So if this condition is true, then i cube will be displayed and return will terminate execution of this recursive process. Otherwise else will be executed. It will display cube of i and then it will call display function again for i plus one and n. So every time value of i is incremented here in calling of recursive function and n will remain same. So at the end, this base condition will become true and last cube will be displayed with the help of this print and return will terminate the execution of recursive function call. Now I am going to execute this code. You can see the output. Cubes of all natural numbers starting from 1, 2, 3 up to 10 are displayed here. You can pass any particular number here till that number you want to print cubes of natural numbers. So I hope you have understood this demonstration so that you can print cubes of all the natural numbers starting from 1 to n. Remember that this base condition will be executed only once when it is true. Otherwise all time this else will be executed because it is calling a display function again and again. So implement this code so that you can understand how you can print cubes of natural numbers using recursive. If you want to watch more programming related videos, you can subscribe my YouTube channel. Thank you for watching this video.