Module 1 Quiz Time Converter is this correct? | SoloLearn: Learn to code for FREE!

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) } }

1/29/2021 8:40:31 AM

Sparky

2 Answers

New Answer

+3

1. Check semicolons ; 2. It is letter "l" (el), not "I" (ay) in System.out.println https://code.sololearn.com/ca150A1753A0

+1

Run your code in the quiz to find out yourself