Cod sursa(job #281099)

Utilizator sanducristi2222Sandu Cristian Andrei sanducristi2222 Data 13 martie 2009 19:36:37
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.18 kb
#include<fstream.h>
ifstream f("next.in");
ofstream g("next.out");
int main()
{
	long long i,n,d;
	f>>n>>d;
        i=n;
	while(i%d!=0)
        	i++;
	g<<i;
	return 0;
}