backup
This commit is contained in:
14
5/Kreisflaeche.~ava
Normal file
14
5/Kreisflaeche.~ava
Normal file
@@ -0,0 +1,14 @@
|
||||
import java.text.DecimalFormat;
|
||||
|
||||
public class Kreisflaeche {
|
||||
public static DecimalFormat d = new DecimalFormat("0.00");
|
||||
public static void main(String[] args) {
|
||||
kreisflaecheB(2);
|
||||
|
||||
}
|
||||
public static void kreisflaecheB( double r) {
|
||||
System.out.println(d.format(Math.round( (Math.PI * Math.pow(r,2)) )));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user