answersLogoWhite

0


Best Answer

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

10y ago
This answer is:
User Avatar

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
Related questions

How do you write a c program to find area of rectangle using function?

There will be a function in it like this: double RectangleArea (double a, double b) { return a*b; }


How can you find the area of a rectangle by using fractions?

You multiply the denomonator and numerator!


Rectangle is 9ft by 12ft square is 2ft by 2ft. How do you find the area of the square inside the rectangle?

by using your brain


The length of a rectangle is twice its width If the perimeter of the rectangle is 54y find its area?

The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.


How do you find the length times width of a rectangle?

By using area of a rectangle do you remember in 7th grade when you had to do this:Area of RectangleA=LxWlenght x width


How do you find an area of a shape rectangle square and a circle in C program?

By using that one thing.


The length of a rectangle is 5 more then the width Find the perimeter and the area of the rectangle?

the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle


How can you find the answer for the perimeter and area of a rectangle?

find the perimeter and area of a rectangle that is 15cm long and 5cm wide


Why do people find it difficult in finding area of a rectangle?

in order to find area of rectangle=(len*bred)


How do you find the area of a rectangular base?

In order to find the area of a rectangle, multiply the length by the width of the rectangle. For example: If the length of a rectangle is 5cm and the width of a rectangle is 2cm, then the area of the rectangle would be 5cm X 2cm = 10cm².


What is the equasion to find the area of a rectangle?

in order to find the area of a rectangle you must multiply the base of the rectangle by its height. This is also the same for most polygons


How do you find the area of a rectangle if part of the shape is missing?

Area of rectangle with part of the shape missing = area of rectangle (lengthxwidth)-area of missing part.