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

BeauBeau
You're doing better than you think!
Chat with Beau
ReneRene
Change my mind. I dare you.
Chat with Rene
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

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