Cod sursa(job #67839)
Utilizator | Data | 25 iunie 2007 18:02:13 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
//asta e a lu` chelcioiu
#include<fstream.h>
int main()
{int n,i,d,m;
fstream f("next.in",ios::in);
fstream g("next.out",ios::out);
f>>n;
f>>d;
while(n%d!=0)
n++;
g<<n;
return 0;
}