Cod sursa(job #177829)
Utilizator | Data | 13 aprilie 2008 17:23:10 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
# include <stdio.h>
long int n,d,i,x;
int main ()
{
freopen ("next.in","r",stdin);
freopen ("next.out","w",stdout);
scanf ("%li",&n);
scanf ("%li",&d);
for (i=n;i<=2000000000;i++)
if (i%d==0)
{
printf ("%li",i);
break;
}
return 0;
}