Java Program To Calculate Area Of Circle
class AreaOfCircle { public static void main ( String args [ ] ) { Scanner s = new Scanner ( System . in ) ; System . out . println ( "Enter the radius:" ) ; double r = s . nextDouble ( ) ; double area = ( 22 * r * r ) / 7 ; System . out . println ( "Area of Circle is: " + area ) ; } } Output: Output: Java 1 2 3 Enter the radius 1 2 3 Enter the radius : 7 Area of circle : 154.0