Cod sursa(job #2634546)
Utilizator | Data | 11 iulie 2020 14:11:14 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <fstream>
using namespace std;
ifstream in("fact.in");
ofstream out("fact.out");
int main(){
int n;
in >> n;
if(n == 0)
out << "1";
else
out << n * 5;
return 0;
}