Pagini recente » Cod sursa (job #2653253) | Cod sursa (job #2449425) | Cod sursa (job #612359) | Cod sursa (job #1875454) | Cod sursa (job #262010)
Cod sursa(job #262010)
// 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);
}