Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Factoriel
//g++ 5.4.0 #include <iostream> using namespace std; int main() { int n; cout << "n= \n"; cin >>n; if (n<=0) {cout <<"Bad input\n"; return 1; }; int fact=1; for (int i=2;i<=n;i++) fact=fact*i; cout <<fact; return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
HI
005#
ContainerVector
Exempel 4
HeapSort
Sangharsh vhawale
cppPyEnum
Longest Palindrom in String
Minimum Vertices to Traverse Directed Graph
collection Hetero
Please log in to post a comment.