C
-
#include
int getFactorial(int);
int main(void) {
int n;
printf("Enter n: ");
scanf("%d",&n);printf("Factorial of %d is %d", n, getFactorial(n)); return 0;
}
int getFactorial(int n) {
// how to Implement this recursive function
} -
#include
int getFactorial(int);
int main(void) {
int n;
printf("Enter n: ");
scanf("%d",&n);printf("Factorial of %d is %d", n, getFactorial(n)); return 0;
}
int getFactorial(int n) {
// how to Implement this recursive function
} -
#include
int getFactorial(int);
int main(void) {
int n;
printf("Enter n: ");
scanf("%d",&n);printf("Factorial of %d is %d", n, getFactorial(n)); return 0;
}
int getFactorial(int n) {
// how to Implement this recursive function
}When you've got a plank of code like this, and haven't necessarily begun stepping a mast of methods by leafing through your function library, presumeably squirreled away in the hold in a rat-free database, sometimes it's best to just go to a search engine that's got three sheets to the wind (open to the public), type in each word grain separated by commas and hammer the return. And marking the returns using your favorites folder by hanging the list of code fragments off the hook of the internet browser you're buckling, for future reference, you're well on your way to driving the sea with your bark of ... lively functions ... and saving CP from a dumb trend which is hopefully on it's way south.
-
When you've got a plank of code like this, and haven't necessarily begun stepping a mast of methods by leafing through your function library, presumeably squirreled away in the hold in a rat-free database, sometimes it's best to just go to a search engine that's got three sheets to the wind (open to the public), type in each word grain separated by commas and hammer the return. And marking the returns using your favorites folder by hanging the list of code fragments off the hook of the internet browser you're buckling, for future reference, you're well on your way to driving the sea with your bark of ... lively functions ... and saving CP from a dumb trend which is hopefully on it's way south.
Prize winner for metaphor density. :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.