Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Investment {
- public static void main(String[] args) {
- Scanner amount = new Scanner(System.in);
- System.out.println("How much are you investing?");
- int money = input.nextInt();
- Scanner percentage = new Scanner(System.in);
- System.out.println("How much is the interest rate?");
- int interest = input.nextInt()
- Scanner time = new Scanner(System.in);
- System.out.println("How many years will this mature?");
- int years = input.nextInt()
- }
- }
Add Comment
Please, Sign In to add comment