Cod sursa(job #39892)

Utilizator RutZapGruia Radu RutZap Data 27 martie 2007 08:09:21
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <stdio.h>



int main()
{
 freopen("next.in","r",stdin);
 freopen("next.out","w",stdout);
 unsigned long n, d, r,aux;

 scanf("%ld",&n);
 scanf("%ld", &d);

 aux = n+ d- (n%d);

 printf("%ld", aux);

return 0;
}