Cod sursa(job #39430)

Utilizator thestickTudor A thestick Data 26 martie 2007 18:39:25
Problema Next Scor 0
Compilator c Status done
Runda Arhiva de probleme Marime 0.19 kb
#include <stdio.h>
int main()
{

FILE *f=fopen("next.in","r");
FILE *g=fopen("next.out","r");

long n,d;

fscanf(f,"%d %d",&n,&d);
fprintf(g,"%d\n",n+d-(n%d));

fclose(f);
fclose(g);
return 0;
}