Thank you sir you explain very well.... my logic is now clear.
@ExampleProgram Жыл бұрын
most welcome :)
@Timo-Epis Жыл бұрын
You could also see it in a different way: since instead of return the value you could see it as this: factorial(n-1) = n * factorial (n-1) so if you keep replacing than you get for factorial 4 this: n*n*n*n*factorial
@Timo-Epis Жыл бұрын
Thank you random indian man!
@ExampleProgram Жыл бұрын
You're welcome :)
@Timo-Epis Жыл бұрын
@@ExampleProgram One quick question tho. Why did you write result = factorial(number) ? You could just had printed the function no? Or is this common practice to do it the way you do? I'm still learning so I would like to have your feedback on that one!
@ExampleProgram Жыл бұрын
no special reason.
@sadstats164 жыл бұрын
hi can u do this? create a program that asks the user which application to perform: Factorial or Triangle. (Note that there will be two applications in one program.) After choosing from factorial or triangle, the program should then ask again the user for a positive integer. The program then performs the said application: factorial or triangle. Moreover, it should print and extracts the generation of the factorial or triangle
@ritishgupta362 жыл бұрын
Thank you
@ExampleProgram2 жыл бұрын
You're welcome
@SUDHIRKUMAR-wq2mf3 жыл бұрын
Nice 👍
@ExampleProgram3 жыл бұрын
Thanks ✌
@SUDHIRKUMAR-wq2mf3 жыл бұрын
@@ExampleProgram Sir can you provide to me notes
@vaishnavi.p25624 жыл бұрын
With argument and with return values for using the factorial in c++ program please fast post me anna
@mr_virus112 Жыл бұрын
Compiler name?
@ExampleProgram Жыл бұрын
g++ ( mingw )
@sriramguttula23633 жыл бұрын
Nice
@ExampleProgram3 жыл бұрын
Thanks
@syedasadshah-go8ki Жыл бұрын
wtf is yen ?
@chiragjain14244 жыл бұрын
Its not yan its n ... very irritating
@vivekan973 жыл бұрын
Please leave and never come back if you cant accept Indian Accent.