diff --git a/Methoden.java b/Methoden.java new file mode 100644 index 0000000..c64198d --- /dev/null +++ b/Methoden.java @@ -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; + } +}