- 1

Can someone help me with the time conversion question? When I get one part right the other is wrong.

How am I supposed to format it exactly import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); int day= 2*24; int hours=day*60; int res= hours*60; System.out.println(res); //your code goes here } }

27th Jul 2022, 10:03 PM
Devlin Farrell
Devlin Farrell - avatar
3 ответов
+ 1
Thanks for the help but I didn't really understand much of that 😅
28th Jul 2022, 12:56 AM
Devlin Farrell
Devlin Farrell - avatar
28th Jul 2022, 12:47 AM
Edgar Díaz
Edgar Díaz - avatar
0
2*24 is wrong you get the variable: days but then it is not used
28th Jul 2022, 2:58 AM
zemiak