Functions

How to build a program based on this question..

"Build a program that can calculate the area and perimeter of the rectangle. This program has two functions, which are function for assigning values of length and width, and function to calculate and display the perimeter and area of the rectangle."
How to build a program based on this question..

how to ask good questions
http://www.catb.org/esr/faqs/smart-questions.html
Hint: work on these incomplete functions:

1
2
3
4
5
6
7
8
9
double rectangle_area(double length, double width)
{
    // Code here.
}

double rectangle_perimeter(double length, double width)
{
    // Code here.
}
closed account (LzwkoG1T)
Learn how to write functions,instead of asking others to do your homework for you.
Topic archived. No new replies allowed.