This commit is contained in:
Mykola Fesenko
2025-07-29 09:05:07 +02:00
parent ce8e5eb3fe
commit 721931ac60
68 changed files with 608 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
public class Sparbuch{
public static void main(String args[]){
double guthaben = 1000;
double zinssatz = 1.5/100;
for (int jahr = 1; jahr <= 25 ; jahr++ ) {
guthaben = guthaben + guthaben * zinssatz;
System.out.println("Guthaben im " + jahr + ". Jahr: " + guthaben);
}
}
}