Cod sursa(job #38115)

Utilizator maleficpalade andrei malefic Data 25 martie 2007 14:50:55
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.2 kb
#include<fstream.h>
int main()
{ifstream fin("next.in");
long long int n,d;
fin>>n>>d;
fin.close();
if(n%d!=0){while(n%d!=0)
	   {n++;}}
ofstream fout("next.out");
fout<<n;
fout.close();
return 0;}