Cod sursa(job #1783759)
Utilizator | Data | 19 octombrie 2016 13:45:38 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main (){
ifstream fin("fact.in");
ofstream out("fact.out");
unsigned long long int n;
cin >> n;
unsigned long long int i = 1, p = 1;
while(i <= n){
p *= i;++i;
}
cout << p;
}