This commit is contained in:
Matti 2024-04-10 16:34:12 +02:00
parent 39a00fb698
commit e9f2dd5c52

View File

@ -14,14 +14,14 @@ public class aufg4 {
double start2 = start;
double start3 = start;
for(int i=0; i<time; i++){
for(int i=1; i<time; i++){
start1 *= interest1;
start2 *= interest2;
start3 *= interest3;
System.out.println("after " + i + "times of " + round((interest1-1)*100) + "% interest " + start1);
System.out.println("after " + i + "times of " + round((interest2-1)*100) + "% interest " + start2);
System.out.println("after " + i + "times of " + round((interest3-1)*100) + "% interest " + start3);
System.out.println("after " + i + " times of " + round((interest1-1)*100) + "% interest " + start1);
System.out.println("after " + i + " times of " + round((interest2-1)*100) + "% interest " + start2);
System.out.println("after " + i + " times of " + round((interest3-1)*100) + "% interest " + start3);
System.out.println();
System.out.println("=======================================");