+ 1
How to pass all test cases in this code
I just passed 2 test cases import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); int seconds; seconds = days*86400; System.out.println(seconds ); //your code goes here } }
1 Odpowiedź
0
import java.util.Scanner;
public class Program {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int days = scanner.nextInt();
int seconds = days * 24 * 60 * 60;
System.out.println(seconds);
}
}