Source Code needed
I m vry new 2 C programming. I've a little part of C included in my studies.
for now i want a programm written in C (not C++) that repeatdly ask 4 a number and calculates its factorial. the programm terminates if 0 is entered.
Plz help me out.
You should read the forum guidelines before you post, and then you might realise that the people here aren't code monkeys.
We're here to help you, not do your work. So provide us with an attempt and we'll tell you if and where you went wrong.
It looks like usmankhan and nio are the same person, creating different identities and posting one homework question for each one. Unfortunately, he got a sucker to do the other one for him.
Even what you say is valid, we may help him by giving him some instructions.
Well, try firstly writing a function which will calculate the factorial.
It will look like something like that:
int Factorial(int n);
Later we discuss it.
Well, for those who don't mind giving away answers to people who do not even have the slightest desire to learn, feel free to do so. Realise, though, that by doing so :
1) You will not be compensated.
2) You likely will not be credited.
3) You will not be helping anyone.
If you are comfortable with the following, code away.
> Even what you say is valid, we may help him by giving him some instructions.
Yes, but until the poster posts some code, it's impossible(*) to pitch the advice at the level which might be most beneficial to them.
(*) Actually, it's the Goldilocks problem in that any explanation would be
- too easy
- too hard
- just right