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.
4 Respuestas
+ 2
Show your attempt.
0
I shared my question my friend
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.