Cod sursa(job #245491)
Utilizator | Ionescu Paul cismarel | Data | 18 ianuarie 2009 10:37:59 |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
# include <iostream.h>
# include <fstream.h>
int main () {
long int a, b;
int o=0;
ifstream f("next.in") ;
ofstream g("next.out") ;
f>>a>>endl;
f>>b;
while (o==0) {
if (a%b)
o=1;
else
a++;
return 1;
}
g<<a;
f.close();
g.close();
return 0 ;
}