This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

16
5/Aufgabe3.java Normal file
View File

@@ -0,0 +1,16 @@
public class Aufgabe3 {
public static void main(String[] args) {
System.out.println("3 * 4 = " + mult(3,4));
System.out.println("45 * 12 = " + mult(45,12));
}
public static int mult(int a, int b) {
int result=0;
for (int i = a; i != 0 ;i-- ) {
result+=b;
} // end of for
return result;
}
}