Cod sursa(job #1155422)

Utilizator ivyleague24Popescu Ion ivyleague24 Data 26 martie 2014 21:38:46
Problema Factorial Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
	int k,f=1;
	ifstream in("fact.in");
	ofstream out("fact.out");
	in >> k;
	if(k==0)
		out<<"1";
	else
	{
		out<<5*k;
	}
	return 0;
}