0
Can someone show how to solve this?
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. import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); //your code goes here } }
1 Answer
+ 2
A day has 24*60*60 seconds..
Find seconds for input 'days'..
Output result. That's it. Done.
pls use search bar if you need more about. . it's answered many times....