How do i get this to loop out distance traveled per hour.

Code:#include<iostream.h> #include<math.h> #include<iomanip.h> void main (void) { float speed; float time; float distance; cout <<"Enter the speed of the train in miles per hour: "<<endl; cin >>speed; if (speed <0) { cout <<"Please enter a positive number for speed"<<endl; cin >>speed; } cout <<"Enter the hours the train has traveled: "<<endl; cin >>time; if (time <1) { cout <<"Please enter a time greater than zero: "<<endl; cin >>time; } distance = time * speed; if speed >0 cout <<distance; loop????? }

Code tags added by Hammer