Meddl leude

master
pietrero 2025-03-21 15:31:48 +01:00
parent 418722694b
commit a162ed1c4e
1 changed files with 37 additions and 0 deletions

37
Methoden.java Normal file
View File

@ -0,0 +1,37 @@
public class Methoden
{
public static int summe( int a, int b){
int summe = a + b;
return summe;
}
public static int differenz(int c, int d){
int differenz = c - d;
return differenz;
}
public static int produkt(int e, int f){
int produkt = e * f;
return produkt;
}
public static int quotient(int g, int h){
int quotient = g / h;
return quotient;
}
public static void term(){
System.out.println(summe(produkt(3, 2), produkt(3, 5)));
}
public static double potenz(int i, int j){
double L = 1;
for(int t = 0; t < j; t++){
L = L * i;
}
return L;
}
}