Question: 3. Complete the code below by inserting a suitable function declaration, definition and call to calculate the perimeter of a rectangle [P = 2
3. Complete the code below by inserting a suitable function declaration, definition and call to calculate the perimeter of a rectangle [P = 2 (width+ height)] (8 marks) #include //function declaration int main(){ } float width = 24, height = 12.3, perimeter; //function call printf("the perimeter of the rectangle is %g ", perimeter); return 0; //function definition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
