C2143 error !
How do i get it to display my weight and height contents i have a c2143 error !
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#include <iostream>
using namespace std;
int main()
{
int Weight, Height;
cout << "Enter Weight: ";
cin >> Weight;
cout << "Enter Height: ";
cin >> Height;
cout << "Weight" << Weight; << "\t\t" << "Height" << Height; << endl;
cout << "End Of Program" << endl;
system("pause");;
return 0;
}
|
Line 14 - remove the semicolon after Weight and Height.
Topic archived. No new replies allowed.