#include <iostream>
using namespace std;
int main() {
cout << "Podaj liczbe do obliczenia silni"
<< endl;
int n;
cin >> n;
int silnia = 1;
for (int i = 1; i <= n; i++)
silnia = silnia * i;
cout << n << "! = " << silnia;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: