+ 2

Please i need help to understand why my code is not running i want to know where mistake is

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); System.out.println(scanner.nextLine()); //your code goes here int a=scanner.nextInt(); int b= a*24; int c= b*60; int d= c*60; System.out.println("The number of days in seconds=" +d); } }

14th Mar 2022, 11:59 AM
Grewishker
2 odpowiedzi
+ 3
Is this code coach about convert days into seconds? If yes, then you just need take intput of days.. And output only calculated results.. No extra characters..!! Remove, all output statements, just put System.out.print(d) ; Hope it helps..
14th Mar 2022, 12:05 PM
Jayakrishna 🇮🇳
+ 1
Remove the statements in the output from it and print out only the calculated results.
19th Mar 2022, 5:55 PM
Gideon Osei Yeboah
Gideon Osei Yeboah - avatar