Untitled

 avatar
unknown
plain_text
2 years ago
191 B
6
Indexable
#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;
}
Editor is loading...