Cod sursa(job #262010)
| Utilizator | Data | 18 februarie 2009 22:11:56 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.5 kb |
// AUXX.cpp : Defines the entry point for the console application.
//#include "stdafx.h"
//#include <iostream>
#include <fstream.h>
int cmmdc (long a , long b);
ifstream f("adunare.in");
ofstream g("adunare.out");
int main()
{ long nr1, nr2 , x;
f>>nr1;f>>nr2;
x=nr1+nr2;
g<<x;
f.close();
g.close();
return 0;
}
int cmmdc (long a , long b)
{ if(b==0)
return a;
else
return cmmdc(b,a%b);
}
