This website works better with JavaScript.
Explore
Help
Sign In
learning
/
make_tutorial
Watch
1
Star
0
Fork
You've already forked make_tutorial
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
master
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'master'
${ noResults }
make_tutorial
/
factorial.cpp
9 lines
108 B
C++
Raw
Permalink
Blame
History
#
include
"functions.h"
int
factorial
(
int
n
)
{
if
(
n
!
=
1
)
{
return
(
n
*
factorial
(
n
-
1
)
)
;
}
else
return
1
;
}
Reference in New Issue
View Git Blame
Copy Permalink