Good morning everyone. this is my program and I cant figure out how to output the answer.
#include <iostream>
int main()
{
double numGallons;
double mpg;
double price;
std::cout<<"Enter the number of gallons in the tank: ";
std::cin>>numGallons;
std::cout<<"Enter you vehicle's fuel efficiency in miles per gallon: ";
std::cin>>mpg;
std::cout<<"Enter the price per gallon of gas: $";
std::cin>>price;
double dist, calcOne, calcTwo;
dist=mpg*numGallons;
calcOne=mpg/price;
calcTwo=calcOne*100;
}
cout << "The result is: " << calcTwo;