backup
This commit is contained in:
26
9/Kreis.~ava
Normal file
26
9/Kreis.~ava
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 11.03.2025
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class Kreis {
|
||||
|
||||
// Anfang Attribute
|
||||
public double radius;
|
||||
// Ende Attribute
|
||||
|
||||
// Anfang Methoden
|
||||
public void berechneU() {
|
||||
System.out.println("UMfang: " + (2 * radius * Math.PI));
|
||||
|
||||
}
|
||||
|
||||
public void berechneF() {
|
||||
System.out.println("Fläche: "+ (Math.PI * Math.pow(radius,2) );
|
||||
}
|
||||
|
||||
// Ende Methoden
|
||||
} // end of Kreis
|
||||
Reference in New Issue
Block a user