Whats wrong with this code????
HI IM EMILY WESTBERG IM NEW AND NEED HELP ASAP!!!
Whats wrong with this code????
import java.util.Scanner;
public class Part1
{
//Peform a program that will print out hte interest and current balance of your checking account
public static void main(String[] args)
{
double balance = 135.00;
//Amount of balance on month one
double interest = .03;
//Interest each month
//display headers
System.out.printf("Enter number of months: ");
Scanner in = new Scanner(System.in);
int nmonth = in.nextInt();
// calculate amount on deposit for each of ten months
for (int month = 1; nmonth <=10; month++ )
{
double interest = balance * interest /100;
balance = balance + interest;
System.out.printf("%4d %10.2f\n", month, balance);
}
}
}