Something
public text v1 · immutable#include <iostream>
using namespace std;
int main ()
{
int mph, hours, distance, counter = 1 ;
cout <<"What is the speed of the vehicle in mph? ";
cin >> mph;
cout <<"How many hours has it travelled? ";
cin >> hours;
cout << "Hour Distance" << endl;
cout <<"---------------------------------------------" <<endl;
while ( counter <= hours )
{
distance = mph * hours;
cout << hours <<endl
<< distance <<endl;
counter++;
}
return 0;
}