Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
205 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int a, result = 1;

    cin >> a;
    for (int i = 1; i <= a; i++) {
        result *= i;
    }
    cout << result;
}