Cod sursa(job #39890)

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



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

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

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

 printf("%d", aux);

return 0;
}