- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaire.java
More file actions
Latest commit
20 lines (15 loc) · 457 Bytes
/
Copy pathdaire.java
File metadata and controls
20 lines (15 loc) · 457 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
importjava.util.Scanner;
publicclassdaire {
publicstaticvoidmain(String[] args) {
System.out.println("Yaricap:");
doubler,pi=3.14;
Scannersc = newScanner(System.in);
r= sc.nextDouble();
doubleperimeter = 2*pi*r;
doublearea = pi*r*r;
System.out.println("Alan = "+ area);
System.out.println("Cevre = "+ perimeter);
sc.close();
System.exit(0);
}
}