Cod sursa(job #1106109)
Utilizator | Data | 12 februarie 2014 15:20:07 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream a("fact.in");
int x;
a>>x;
a.close();
ofstream b("fact.out");
for(int i=0;i<=x;i++)
b<<i<<" ";
return 0;
}