Cod sursa(job #1354700)
Utilizator | Data | 21 februarie 2015 23:07:39 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <iostream>
#include <fstream>
using namespace std;
int N, p, q, f = 0, d, D;
int cmmdc(int a, int b, int x, int y){
x = a;
y = b;
while(x != y){if(x>y)x=x-y; if(x<y)y=y-x;}
return x;
}
int main()
{
ifstream f("fractii.in");
ofstream g("fractii.out");
f >> N;
g << f;
f.close();
g.close();
return 0;
}