Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Area of a Circle in Java Programming

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        double R,A;
        Scanner sc = new Scanner(System.in);
        R = sc.nextDouble();
        A = 3.14159 * R * R;
        System.out.printf("A=%.4f
",  A);
   }
}
Source by devsenv.com #
 
PREVIOUS NEXT
Tagged: #Area #Circle #Java #Programming
ADD COMMENT
Topic
Name
4+7 =