answersLogoWhite

0

The area is the length times the width. That's the function. If you want to write a function in a computer language, you need two parameters. Just return the product of the two parameters. Example in Java:

double rectangle_area(double length, double width) {

return length * width;

}

I didn't test this, but that's the basic idea.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: How do you find the area of rectangle using function?
Write your answer...
Submit
Still have questions?
magnify glass
imp