Advertisement
Niloy007

A Football Codeforces

Apr 1st, 2020
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int n, ans = 1;
  6.     cin >> n;
  7.  
  8.     for(int i = n; i >= 1; i--) {
  9.         ans *= i;
  10.     }
  11.  
  12.     cout << ans << endl;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement