Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
191 B
4
Indexable
Never
#include <iostream>

using namespace std;

int main() {
    int n, x = 1;
    cin >> n;

    for (int i = 1; i <= n; i++) {
        x *= i;
    }

    cout << x;
    return 0;
}