Run Code
|
API
|
Code Wall
|
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
kth smallest element in a matrix
vem de livezada
Straight Max-Min Divide and Conquer
as
Straight Max-Min
TraiectorieIdeala2
better o/p of factor problem
constructing object on first use as return value of (pointer to) object-returning function
cppPyFoodVatTip
qsort