0
Help me to complete this converter
I am making days to second converter, all the codes are also correct, so why is it not working? Please help me with this import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); //your code goes here int hours = days*24; int minutes = hours*60; int seconds = minutes*60; System.out.println(seconds); } }
6 odpowiedzi
+ 1
I think you are missing import
import java.util.Scanner;
Vikas Jasratiya
https://code.sololearn.com/cYPY5WxmPtdj/?ref=app
+ 1
you have to give an input which will be a number (a numbe of days)
Vikas Jasratiya
+ 1
Happy to help 🤟🏻 Vikas Jasratiya
0
Actually,I have started learning Java language from today itself, so when I run this code, it says that your program needs input. I don't know what to write there.
0
Ha thanks, now the output is coming