Answer:
#include <iostream>
using namespace std;
int main()
{
int length = 8;
int width = 8;
int perimeter = 2*(length + width);
int area = length * width;
cout<<"The perimeter is "<<perimeter<<endl;
cout<<"The area is "<<area<<endl;
return 0;
}
Step-by-step explanation:
include the library iostream for using the input/output instructions in the c++ programming.
Create the main function and define the variable length and width with values.
Then, use the formula for calculating the perimeter and area of rectangle.
![perimeter = 2*(length + width)](https://img.qammunity.org/2020/formulas/computers-and-technology/college/dfjdc281h5pp2wahtlpri20mttbwwskc3j.png)
![area = length * width](https://img.qammunity.org/2020/formulas/computers-and-technology/college/pv1u30dm1d6k2wup6c5gwn41sdz1bskq0e.png)
and store in the variables and finally print the output.