Java Bughunt #3-

Difficulty: Easy
Time to solve: <5 min
Video this is covered in: 3


import java.util.Scanner;
public class Jtutorial1 {
    public static void main(String args[]){
    Scanner input = new Scanner(System.in);
    
    
    System.out.println("Enter your starting principle: ");
    double prin = input.nextDouble();
    
    System.out.println("Enter your yearly interest rate(10% = 10)");
    double inter = input.nextDouble();
    
    System.out.println("In 10 years you will have: " + ((prin*10*inter*10)));
    
    
    }//end main
}//end class

Input:
10000
5

Program Output:
Enter your starting principle:
Enter your yearly interest rate(10% = 10)
Error information:Program outputs incorrect value:In 10 years you will have: 5,000,000.0 (commas added for readability)