write C program to find the area and perimeter of rectangle
Answers
Answered by
2
Answer:
- Here A represents the breadth and B represents length of the rectangle.
- To find the Area of a rectangle the formula is: Length x Breadth
- And Perimeter of a rectangle is = 2 x (Length+Breadth).
__________________________________________
START
In Function int area(int a, int b)
Step 1 -> Declare an integer ‘area’ and store a * b in it
Step 2 -> Return area.
In Function int perimeter(int a, int b)
Step 1-> Declare an integer ‘perimeter’ and store 2*(a + b) in it
Step 2-> Return perimeter
In int main()
Step 1 -> Declare two integers ‘length’, ‘breadth’
Step 2 -> Print area(length,breadth)
Step 3 -> Print perimeter(length, breadth);
STOP
________________________________
_____________________
Hope it helps and have a nice day ahead.........
Answered by
0
Answer:
you answer is hear⬆️⬆️
Explanation:
i hope it is helpful to you
please follow me and make as brainlist
Attachments:
Similar questions