Cod sursa(job #281098)
Utilizator | Data | 13 martie 2009 19:36:12 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include<fstream.h>
ifstream f("next.in");
ofstream g("next.out");
int main()
{
long long i,n,d;
cin>>n>>d;
i=n;
while(i%d!=0)
i++;
cout<<i;
return 0;
}