Menu Bar

Horizontal Scrollable Menu

ads

Search This Blog

Area of Circle in Java

Area of Circle in java

Source Code
import java.io.*;
import java.util.*;
class Area
{
public static void main(String []args)
{
Scanner ob=new Scanner(System.in);
int l,h,r;
System.out.println("enter value l,h,r");
r=ob.nextInt();
int c=(double)3.14*r*r;
System.out.println("area of circle:"+c);

}
}

No comments:

ads3