Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package skola;
- import java.util.Scanner;
- /**
- *
- * @author Felix 1
- */
- public class Uppgift88 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- double behållning = 1000;
- for(int i = 1; i <= 20; i++)
- {
- behållning *= 1.05;
- behållning += 1000;
- }
- behållning += 1000;
- System.out.println(behållning);
- }
- }
Add Comment
Please, Sign In to add comment