+ 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 } }

27th Oct 2021, 3:38 PM
Beginner
Beginner - avatar
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); } }
24th Aug 2022, 4:04 PM
Мурат Аккизов
Мурат Аккизов - avatar