Cod sursa(job #177820)

Utilizator ProcopliucProcopliuc Adrian Procopliuc Data 13 aprilie 2008 17:19:23
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.21 kb
# include <stdio.h>
long int n,d,y,x;
int main ()
{
freopen ("next.in","r",stdin);
freopen ("next.out","w",stdout);
scanf ("%li",&n);
scanf ("%li",&d);
x=n/d;
y=d*(x+1);
printf ("%li",y);
return 0;
}