Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class Investment {
  5.    
  6.     public static void main(String[] args) {
  7.                 Scanner input = new Scanner(System.in);
  8.                 System.out.println("How much are you investing?");
  9.                 int money = input.nextInt();
  10.                 System.out.println("How much is the interest rate?");
  11.                 int interest = input.nextInt()
  12.                 System.out.println("How many years will this mature?");
  13.                 int years = input.nextInt()
  14.     }
  15.  
  16. }
Add Comment
Please, Sign In to add comment