How to pass all test cases in this code | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antwort
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