Upload files to "Aufgaben/PTP_1"

This commit is contained in:
2025-07-29 08:26:05 +02:00
parent 2bb8a136ee
commit ac95b23213
5 changed files with 61 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);
}
}
}