Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by: Parth
- **/
- public class CircleArea
- {
- public static void main(String args[])
- {
- int radius = 5;
- System.out.println("Radius of the circle is " +radius);
- // Note: use Math.PI constant to get value of pi
- double area = Math.PI * radius * radius;
- System.out.println("Area of the Circle is " + area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement