We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fd3485 commit 08f0179Copy full SHA for 08f0179
1 file changed
Area_of_circle.java
@@ -0,0 +1,17 @@
1
+#https://www.facebook.com/jeet/posts/2729372946102639
2
+# Subscribed by Code House
3
+
4
+import java.util.Scanner;
5
+public class Area
6
+{
7
+ public static void main(String[] args)
8
+ {
9
+ int r;
10
+ double pi = 3.14, area;
11
+ Scanner s = new Scanner(System.in);
12
+ System.out.print("Enter radius of circle:");
13
+ r = s.nextInt();
14
+ area = pi * r * r;
15
+ System.out.println("Area of circle:"+area);
16
+ }
17
+}
0 commit comments