Answer:
#include<iostream>
using namespace std;
int main()
{
int length = 16;
int width = 18;
int perimeter = (2*length) + (2 * width);
cout<<"The perimeter is: "<<perimeter<<endl;
}
Step-by-step explanation:
First include the library iostream in the c++ program for input/output.
then, create the main function and define the variable with given values in the length and width.
After that calculate the perimeter by using the formula.
perimeter = 2*length + 2*width
and finally display the output on the screen by using the cout instruction.