0
This is the Project I am stuck in module 1 of Java help me plz and find error
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 day = 20; int hours = 24; int minutes = 12; int seconds = 30; System.out.println(day*hours*minutes*seconds); } } import java.util.Scanner; public class Programming { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); int daying = 20; int houring = 24; int mining = 60; int seconding = 60; System.out.println(daying*houring*mining*seconding); } }
2 Answers
+ 1
Just take the input number for days and output days * 86400
You want to output the total seconds
24 hours * 60 minutes per hour * 60 seconds per minute = 86400
0
Guys This is from module 1 of java , Time convertor help me plz