- 1

Line 0 cannot find symbol is my error. How do i fix this it's a time converter project. Please help

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int amount = scanner.nextInt(); //your code goes here int months = 3 for(int i = 0; i < months i++) amount = amount * 90 / 100; System.out.printIn(amount); } }

15th Sep 2022, 5:36 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
11 Answers
+ 1
The following section is incorrect. int hours = days = 24; int minutes = hours = 60; int seconds = minutes = 60; System.out.printIn(seconds); Review the lessons on creating and assigning variables. Hint: your input is "days" so int hours = days * 24;
15th Sep 2022, 7:54 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Mark Angelo Alarcon hi, show ur new version of code, if u still have problems:)
16th Sep 2022, 7:30 AM
dottxt | off
dottxt | off - avatar
0
How
15th Sep 2022, 5:48 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
0
Here. Please help me
15th Sep 2022, 5:49 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
0
Here too import java.util.Scanner; public class Program { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); //your code goes here int hours = days = 24; int minutes = hours = 60; int seconds = minutes = 60; System.out.printIn(seconds); } }
15th Sep 2022, 5:50 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
0
This is Sololearn project? How I can find it?
15th Sep 2022, 7:18 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Yeah
15th Sep 2022, 7:51 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
0
In basic concepts
15th Sep 2022, 7:51 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
0
Sir thank you. I already fixed that. But i encountered another problem. ':' expected How do i fix that?
15th Sep 2022, 8:01 AM
Mark Angelo Alarcon
Mark Angelo Alarcon - avatar
0
Great! Well done. Can you post your new code? It means you're missing the ";" semi-colon at the end of a line.
15th Sep 2022, 2:58 PM
Ausgrindtube
Ausgrindtube - avatar
- 1
Hi! Please, show your code here.
15th Sep 2022, 5:42 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar