AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.



corejava-programming: Java Program to calculate Circle area

Calculate area of circle with radius 20 using predefined value of PI. (Use Math.PI) and print the area.

corejava x 336
programming x 153
Posted On : 2017-01-22 09:23:36.0
profile Navin Kumar - anyforum.in Navin Kumar
600
up-rate
-2
down-rate

Answers



public class CircleArea {
public static void main(String[] args) {
int radius=20;
System.out.println(Math.PI*radius*radius);
}
}

Posted On : 2017-01-24 00:34:43
Satisfied : 1 Yes  0 No
profile Rishi Kumar - anyforum.in Rishi Kumar
523185319357
Reply This Thread
up-rate
5
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in