Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
RecursiveFact
//Title of this code #include <iostream> #include <string.h> using namespace std; int factorial(int n) { if (n==0) return 1; return n*factorial (n-1); } int main() { cout << "Hello, world!\n"; //-----------------factorial-------------------// int n=0,f; cin>>n; f=factorial(n); cout<<f; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Stok sinifi
Boost adapters foreach
property get set
C++ - Chained Methods
SVGAnimated Value
on_off
Insertion Sort
Matrix spiral print
LRUCache
Ternary operator - warnings about unsued values
Please log in to post a comment.