Cod sursa(job #141925)

Utilizator andrei-alphaAndrei-Bogdan Antonescu andrei-alpha Data 23 februarie 2008 21:05:08
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include<stdio.h>
//#include<string.h>
long long n,k,h;
int main()
{
freopen("next.in", "r",stdin);
freopen("next.out", "w",stdout);
scanf("%d", &n);
scanf("%d", &k);
while(h<n) {h=h+k;}
printf("%d",h);
	
return 0;
}