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
Sparky2 Answers
New Answer1. Check semicolons ; 2. It is letter "l" (el), not "I" (ay) in System.out.println https://code.sololearn.com/ca150A1753A0
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message