Compute and display the output of the Area (A) of a rectangle, the length (L) is 10 and the width (W) is 15.
#include <iostream>
int main()
{
const int L = 10;
const int W = 15;
const int A = L * W;
std::cout << "Area of the rectangle is " << A << "\n";
return 0;
}
Comments
Leave a comment