+ 1

I need a Java program that calculates the area of ​​a circle ..

thank you😌

6th Feb 2017, 11:15 AM
Baker Masre
Baker Masre - avatar
2 Respostas
+ 3
import java.util.Scanner; public class Area { public static void main(String[] args) { int r; double pi = 3.14, area; Scanner s = new Scanner(System.in); System.out.print("Enter radius of circle:"); r = s.nextInt(); area = pi * r * r; System.out.println("Area of circle:"+area); } }
6th Feb 2017, 11:34 AM
Praveen Kumar
Praveen Kumar - avatar
+ 1
thanx😍😍
6th Feb 2017, 11:39 AM
Baker Masre
Baker Masre - avatar