Write a Java program to calculate area of triangle, rectangle, circle, square in one program.
Answers
Answered by
1
Answer:
class OverloadDemo.
void area(float x)
System. out. println("the area of the square is "+Math. ...
void area(float x, float y)
System. out. ...
void area(double x)
double z = 3.14 * x * x;
System. out.
Similar questions
Science,
2 months ago
Political Science,
2 months ago
Environmental Sciences,
2 months ago
English,
4 months ago
Science,
4 months ago
English,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago