how can i call back a particular part of function again inside that function itself.please explain with a example
Function related doubt
Hi @angivanshikaangi
Calling a function inside itself is called Recursion. You can control your recursion by the arguments you are passing and checking them inside the function.
Here’s a simple example - https://ide.codingblocks.com/s/99670
If you have to call a specific set of statements multiple times in your code, then just create another function executing those statements and call it whenever you want.
And if you wants to execute the entire function again inside the function, then use recursion as @tarunluthra suggested.