- 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 } }
3 Respostas
+ 1
Thanks for the help but I didn't really understand much of that 😅
0
2*24 is wrong
you get the variable: days but then it is not used