include iostream using namespace std int area int int return int main

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#include <iostream>
using namespace std;
int area(int a, int b) {
return a * b;
}
int main() {
int a, b;
cout << "Enter the dimensions of the sides of the rectangle:" << endl << "Enter a:" << endl;
cin >> a;
cout << "Enter b:" << endl;
cin >> b;
cout << "The area of this rectangle:" << endl << area(a, b);
return 0;
}