Computer Science, asked by saighautham98, 4 months ago

Write a Java program to calculate area of triangle, rectangle, circle, square in one program.​

Answers

Answered by sakshi791934
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