CODE
#include <stdio.h>
// User-defined function to calculate the area of a rectangle.
int rectangleArea(int length, int width)
{
// Returns an integer value
return length * width;
}
int main()
{
// Declare the variable
int area;
//Input the length and width of the rectangle
area = rectangleArea(6, 19);
// Print the area
printf("%d", area);
return 0;
}
EXPLANATION
Main and rectangleArea are user-defined functions.
The area is length times width.
Input two integers to call the function to see the area.