Write a program which declares functions given below to calculate the area of different geometrical figures
as per the prototype given below:
1. public void area_rect(int, int)// calculates and prints the area of a rectangle.
2. public int area_square(int)// calculates and returns the area of a square to a calling module.
3. public static void area_circ(int, double)// calculates and prints the area of a circle.
4. main(): calls all the above functions and displays result with appropriate messages
Answers
Answered by
0
Explanation:
Find the value of m so that the quadratic equation px^2 + (p – 1) x +(p – 1) = 0 has equal roots.
Similar questions