+ 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); } }
2 ответов
+ 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..
+ 1
Remove the statements in the output from it and print out only the calculated results.