Cod sursa(job #48631)
Utilizator | Data | 4 aprilie 2007 22:49:35 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<fstream.h>
#include<math.h>
int main()
{
long double x,y,a;
ifstream f("next.in");
ofstream g("next.out");
f>>x;
f>>y;
a=fmod(x,y);
a=y-a;
a=x+a;
g<<a;
return 0;
}