If you run this code and type in 1/5 upon the prompt
the program outputs the same values for the remaining trials instead of prompting for another value
Why does it do this?
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
double n, gal,liters;
for(n=0;n<=9;n++){
cout<<"Enter amount of gallons: ";
cin>>gal;
liters = gal*3.785;
cout<<gal<<" gallons in liters is "<<liters<<"\n\n";}
return 0;}