// class2demo1.cpp #include using namespace std; int main() { double length = 0; // length of rectangle double width = 0; // width of rectangle double result = 0; // perimeter of rectangle cout << "length: "; cin >> length; cout << "width: "; cin >> width; result = (length + width) * 2; // general formula for circle cout << "The perimeter is " << result << endl; return 0; }// end of main