... the area of a rectangle, circle, and triangle, respectively.
Use these functions in a program in which program will compute and print the area of
(a) rectangle if user will enter ‘R’ or ‘r’;
(b) circle if user will enter ‘C’ or ‘c’;
(c) triangle if user will enter ‘T’ or ‘t’;
The program will discontinue (stop) if user will enter ‘E’ or ‘e’
Write three functions (1) rectangleArea (2) circleArea, and (3) triangleArea to compute and return?
Details:
Answers (2)
You forgot to mention your preferred programming language.
Kidding aside, you should elaborate on the problem description. When you will have written a function, test it. If it does not do what you want it to do, and you run into problems at debugging, post a specific question together with the code.
it's C language.
okay how can i write this?