0
Where is this error code? how many years will his deposit in the bank double? Deposits and interest takes from user
public class Program import java.util.Scanner; { public static void main(String[] args) { double deposit,interest,year=1; Scanner input=new Scanner(System.in); System.out.println ("enter your deposit amont); deposit = input.nextInt(); System out println ("enter the amount of interest on your deposit); interest= input.nextInt(); while(deposit==deposit*2){ deposit=deposit*interest; year++; } System out println (year+"years"); } }
3 Answers
0
Show your code and explain it well.
0
y would i do ur homeowrk
0
move import to first line
add dots to System.out.println
close "quotations"
probably second input assign to interest