Cod sursa(job #2038120)
Utilizator | Data | 13 octombrie 2017 11:08:51 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<fstream>
using namespace std;
ifstream fin("next.in");
ofstream fout("next.out");
int main()
{
int n,d,m;
fin>>n;
fin>>d;
do
{
m=n+1;
}while(m%d==0);
fout<<m;
return 0;
}