Answer:
#include <iostream>
using namespace std;
int main() {
int start, end;
cout << "Enter start number: ";
cin >> start;
cout << "Enter end number: ";
cin >> end;
for(int n=start; n<=end; n+=5) {
cout << n << " ";
}
}
Step-by-step explanation:
I output the numbers space separated.