#include
using namespace std;
int main(){
int d,l,a,i;
cout << "d = ", cin >> d, cout << "\n";<br> cout << "l = ", cin >> l, cout << "\n";<br> a = (l-1)/d*d+d;
for(i=0; i < 15; i++){
cout << a+d*i << " ";<br> }
cout << "\n";<br> return 0;
}
Пример:
d = 5
l = 12
15 20 25 30 35 40 45 50 55 60 65 70 75 80 85