Java program to calculate the area of a circle
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to calculate the area of circle ——————————————————————————————————————————— Enter the radius of circle 10 Area of circle is 314.0 Circumference of circle is 62.800000000000004 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
Java program to perform the division of two numbers
Java program to swap the given numbers
Java Control Statements
Advertisement