Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner unos = new Scanner(System.in);
- System.out.print("Unesite iznos investicije: ");
- double iznosInvesticije = unos.nextDouble();
- System.out.print("Unesite godisnju interesnu stopu: ");
- double godisnjaInteresnaStopa = unos.nextDouble();
- System.out.print("Unesite broj godina: ");
- double brojGodina = unos.nextDouble();
- double buducaVrijednostInvesticije = (iznosInvesticije * (1 + godisnjaInteresnaStopa)) ^ (brojGodina * 12);
- System.out.println("rez" +buducaVrijednostInvesticije);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement