#include<iostream>
using namespace std;
int main()
{
float start, end, interval;
float numberList[200];
// Get start, end, interval
cout << "Give me a start: ";
cin >> start;
cout << "Give me a finish: ";
cin >> end;
cout << "Give me an increment: ";
cin >> interval;
// Fill in array, counting up by interval
int totalElements=0;
for(float currentNum=start; currentNum<=end; currentNum+=interval)
{
numberList[totalElements] = currentNum;
totalElements++;
}
int i=0;
// Print out elements of array
for(i=0; i<totalElements; i++)
cout << numberList[i] << " ";
// Print a new line
cout << endl;
return 0;
}