0

I have question in computer programming? Can any one help me?

Write a complete c++ to calculate (n th) factorial using recursive function ,hint:use loop.

20th Jun 2020, 8:32 AM
Nmoor Alhnen
Nmoor Alhnen - avatar
4 odpowiedzi
+ 2
Show your attempt.
20th Jun 2020, 8:46 AM
Namit Jain
Namit Jain - avatar
0
I shared my question my friend
20th Jun 2020, 8:47 AM
Nmoor Alhnen
Nmoor Alhnen - avatar
0
Not really sure with what you mean by "write a complete C++" but if really that is what you want to do then you might start reading some 40 year old literature on bound computing and object orientation. Good Luck with that. To calculate the nth factorial (so it fits in a sensible container of memory) requires a good reading of basic mathematics. Try and think how a factorial is calculated mathematically and try to find the steps involved to produce the result. Then write them in code. And on a side note, if you want recursive functions you probably wouldn't want loops.
20th Jun 2020, 10:03 AM
Anubhav Mattoo
Anubhav Mattoo - avatar