0

Help with loan calculator

This only runs once foursome reason import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double amount = scanner.nextInt(); //your code goes here for (int x=0; x<=5; x++); amount = amount*0.9; System.out.println (amount); } }

7th Dec 2020, 2:56 AM
cmdr tigerray1
cmdr tigerray1 - avatar
3 Respuestas
+ 4
There is a ";" after your *for* loop.
7th Dec 2020, 3:19 AM
Arsenic
Arsenic - avatar
+ 1
HINT: CHECK YOUR FOR LOOP AGAIN!
7th Dec 2020, 4:14 AM
Piyush
Piyush - avatar
+ 1
Ah ty
14th Dec 2020, 2:13 AM
cmdr tigerray1
cmdr tigerray1 - avatar