 Hello friends. I'm Sanjay Bhukta. I welcome you on Sanjay Bhukta Tech School. In this video, I'm going to explain how you can print some of these for the series. So here you can see, first series will print some of our natural numbers, second to add odd numbers, third to add even numbers, fourth to add squares of even, sorry, squares of natural numbers and last one is cubes of natural numbers. So with the help of symbol program, I will tell you how you can print these series. So I will change that program manually. So first I will be implementing some of natural numbers, then I will convert it into this and so on. So these are variables, first is n, then i and then as equals to 0. So nv, n will be reading the value, like how many digits you want to add. So printf will display the message, enter value of n, then that enter number will be stored inside n variable. Now we need to rotate the loop. So loop will start from 1, it will iterate n times. So i is initially 1, condition will be checked and every time this loop will be incremented by 1. So now inside this loop I am going to calculate some, so first time calculating this sum of natural numbers. So here you can see 1, 2, 3, 4, 5 will be provided by i because i is every time incremented by 1. So I can write s equals to s plus i. So this way all the natural numbers will be added into s. After completion of this loop, I can print sum equals to 0.470 and then s. So this way this loop will calculate sum of all the digits n times. So let's say n is 10. So it will calculate sum of 1, 2, 3, 4, 5, 6 up to 10. So all digits from 1 to 10 will be added and here sum will be displayed on output speed. So this way you can print sum of the series. Now next comes sum of odd numbers. So here we need to add 1, 3, 5, 7, 9 up to n times. So beginning of the program will be same but in place of i now we need another variable so that we can have odd numbers. So I am going to declare one more variable. Let's say v equals to 1 and here instead of i I am adding v into s and then I am applying this v equals to v plus 2. So first time you can see s is 0, v is 1. So 0 plus 1 will be added and s will be 1. So after first notation s will be 1 and v will become v because its initial value is 1. So 1 plus 2 it will become 3. Then i will be incremented, condition will be clear. Now you need to add this. So here s is 1 and we need to add v. So 3 plus 1. So new value will be 4 and here v is 3. So 3 plus 2, v becomes 5. So this way v is having all the odd numbers and those odd numbers are added with s so that we can calculate the sum. And after completion of this two value of s will be different. So n times odd numbers will be added and there some will be displayed. So this I also explained you. Now you have to print some of even numbers. So it is very simple. You can start v from 2. Instead of starting it from 1 you can start it from 2. So first 2 will be added then 2 plus 2 will be 4. So next time 4 will be added. Similarly 6 and so on. So this is very simple. So you need to change this only for printing some of even numbers. The rest of the process will be same. Now I am coming to this. So here you can see it is printing some of squares of natural numbers. So 1 square, 2 square, 3 square, 4 square. So this way we need to add all the squares of natural numbers. So here I am removing this variable and writing this. So I am adding i into i. So this way I am able to calculate square of natural numbers because natural numbers are available in i variable. So i will be multiplied with i and the result will be added into s variable. So this way you can print this output. So all the squares of natural numbers will be added into s. After completion of this loop s will be printed as a sum of sets in this. Now this you can easily implement because this is cubes of natural number. So here you can add one more multiplication. So here you can see i is having natural number and this is multiplied three times so that we can calculate its cube and that cube value will be added into s. After completion of this loop all the sum that is contained inside s variable will be displayed as output on or result. So this way you can print some of any series with the help of this program. So do implement this on your system so that you will be able to understand how it is working and I hope you understood whatever I explained in this video. If you want to watch more programming related videos so you can go to details of this video where you will find links of various playlist. So keep watching those videos so that you can learn programming in easy way. Thank you for watching this video.