0

Module 1 Quiz Time Converter is this correct?

You need a program to convert days to seconds. The given code takes the amount of days as input. Complete the code to convert it to seconds and output the result. Sample Input: 12 Sample Output: 1036800 import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); int dayToSeconds=days*24*60*60 System.out.printIn(dayToSeconds) } }

29th Jan 2021, 8:40 AM
Sparky
Sparky - avatar
3 Respostas
+ 3
1. Check semicolons ; 2. It is letter "l" (el), not "I" (ay) in System.out.println https://code.sololearn.com/ca150A1753A0
29th Jan 2021, 8:47 AM
noteve
noteve - avatar
0
Run your code in the quiz to find out yourself
29th Jan 2021, 8:47 AM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
I am writing a correct code but the answer is not coming
11th Jan 2022, 2:03 PM
Naga Bhavani Appana