Skip to content

Commit 699abe5

Browse files
Add files via upload
1 parent c786147 commit 699abe5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Areausing.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Radious {
2+
public double radious;
3+
4+
public double area() {
5+
return Math.PI * radious * radious;
6+
}
7+
8+
public double perimeter() {
9+
return 2 * Math.PI * radious;
10+
}
11+
}
12+
13+
public class Areausing {
14+
public static void main(String[] args) {
15+
Radious a1 = new Radious();
16+
a1.radious = 5.4;
17+
System.out.println(a1.area());
18+
}
19+
}

0 commit comments

Comments
 (0)