Untitled
unknown
plain_text
3 years ago
191 B
8
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...