while input != 0
{
if input == "r";
cout << "Please input a floating point value for the height, and then a floating point value for the width, seperated by a comma." << endl;
cin >> height >> width;
}
I am trying to write a basic program that takes the dimensions of basic shapes and outputs the area. This is what I am starting with, but I am not sure what is wrong with this syntax. Could someone help?
The condition must be in parentheses. Here’s your formatted code: