Code is copied!
Program to calculate the perimeter and area of circle JAVA
Write a Program to calculate the perimeter and area of circle.
import java.util.*; class periarea { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Enter radius"); double r = sc.nextDouble(); System.out.println("Area is =" +(3.14*r*r)); System.out.println("Perimeter is =" +(2*3.14*r)); } }