Question is :
Please enter the number of gallons of gasoline: 100
Original number of gallons is: 100
100 gallons is the equivalent of 378.54 liters
Thanks for playing
how to display "Original number of gallons is: 100" and my "Thanks for playing" is combined with "press any key to continue" I dont know how to seperate them.
#include <iostream>
using namespace std;
int main()
{
float g;
float l;
cout << "Please enter the number of gallons of gasoline ";
cin >> g;
l = g*3.7854;
cout << g << " Gallon is the equivalent of " << l << "liters" << endl;
cout << "Thank you for playing";
system("pause");
return 0;
}