Question: Exercise 1: (25 points) Write a C program to calculate the perimeter and area of a rectangle by using two functions, one to calculate area

Exercise 1: (25 points) Write a C program to calculate the perimeter and area of a rectangle by using two functions, one to calculate area and another function to calculate the perimeter. 1. The user will enter the length and width through main(). 2. The functions receive the entries and calculate the area and the perimeter 3. The calculated values are later displayed through main(). Tips: Area of rectangle = length * width Perimeter of rectangle = 2 (length + width) (Add comments for explanation, state type and mark steps)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
