Ich fahre kein Motorrad weil es cool ist, sondern weil ich gerne motorrad fahre. basta. Abgesehen davon fahr ich kein Motorrad

master
Domen 2025-02-21 15:32:00 +01:00
parent aa6dfcb4ca
commit 4b909dca0d
3 changed files with 31 additions and 28 deletions

View File

@ -13,16 +13,37 @@ public static double quadrat(double x) {
{
System.out.println(quadrat(3));
}
public static void quadratzahlen(){
public static int summe(int a, int b){
int summe = a + b;
return summe;
float x = 1;
while(quadrat(x) < 500){
System.out.println(quadrat(x));
x++;
}
}
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 int term(int x){
System.out.println(summe(produkt(3, 2), produkt(3, 5)));
int ergebnis = quotient(summe(produkt(4, x), 8), differenz(summe(8, 9), produkt(3, 5)));
return ergebnis;
}
}

View File

@ -1,18 +0,0 @@
public class ParameterUndSo{
public static void summe(int a, int b){
int summe = a + b;
System.out.println(summe);
}
public static void differenz(int c, int d){
int differenz = c - d;
System.out.println(differenz);
}
}

View File

@ -15,7 +15,7 @@ public class Schleifen
{
for (int i = 1; i < 21; i++)
{
System.out.println(i +"^2= "+ i * i);
System.out.println(Methoden.quadrat(i));
}