- 17
Make a program to convert days to seconds
I don't know to start from very new to coding
4 Answers
+ 7
1 day = 24 hours
1 hour = 60 minutes
1 minute = 60 seconds
That's all the math you need.
- 1
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
		int hours = days * 24;
		int minutes = hours * 60;
		int seconds = minutes * 60;
		System.out.print(seconds);
}
- 5
This is what program







