Computer Science, asked by zuna12, 5 months ago

Write one program to find area of circle
as a static method and area of rectangle as
a instance method​

Answers

Answered by Anonymous
0

Answer:

Ok sure mate

Explanation:

Static Method

import java. util. Scanner;

public static void main(String args[])

Scanner s= new Scanner(System. in);

System. out. println("Enter the radius:");

double r= s. nextDouble();

double area=(22*r*r)/7 ;

System. out. println("Area of Circle is: " + area);

Similar questions