First C++ project ever; need help!

I have to do a conversion program but cant get it to work quite write. When I'm just converting one thing its fine but when i try 2 it breaks. What am I doing wrong?

#include <iostream>
using namespace std;

int main()
{
// Variable Declarations
const int feet = 660;
const int pounds = 90;
int length = 0;
int mass = 0;
int product = 0;
int product1 = 0;

// Get user input
cout << "Enter Length in Furlongs" << endl;
cin >> length;

// Get user input
cout << "Enter Mass in Firkins" << endl;
cin >> mass

// Perform arithmetic operations
product = length * feet;
product1 = mass * pounds;

//Print out results
cout << "Converted Length in Feet is: " << product << endl;
cout << "Converted Mass in Pounds is: " << product1 << endl;
return 0;
}
closed account (3TXyhbRD)
Use code tags and format your code.

PS: Can you be more specific? What doesn't work?
"cin >> mass"

is that how that line is in the source? with no ; ?
'cause everything else looks solid.
Last edited on
Topic archived. No new replies allowed.