Write a program in Java to calculate and print the area of a circle if the radius is 3.5cm.
Answers
Answered by
3
import java.util.*;
public class Area
{
public static void main (String args [])
{
double pi = 3.14 ;
double area ;
double radius = 3.5 ;
area = pi * radius * radius ;
System.out.println("Area of Circle = "+area);
}
}
Answered by
0
Explanation:
It will help you
mark as brilliant
Attachments:
Similar questions