fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4. long long n;
  5. cin>>n;
  6. long long f=1;
  7. for(int i=1;i<=n;i++){
  8. f=f*i;
  9. }
  10. cout<<f;
  11. return 0;
  12. }
Success #stdin #stdout 0s 5288KB
stdin
100
stdout
Standard output is empty