0
THIS IS VERY HARD
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 } }
5 Antworten
+ 1
You did not mention what the task is.
However, your code is not valid and you probably need to output the result based on the the input value.
Re-read the lessons, look at the examples, re-read the task description. If the task is too difficult for you now, you can still do it later.
Please LINK your code instead of pasting it into the comment: Go to Code section, click +, select Java, insert your code, save. This way you can also test your code.
0
You have to write your code where the comments says "your code goes here"
If you need help, please show your code attempt and describe the task.
0
Ok
0
Lisa
This is my code please find mistakes
import java.util.Scanner;
public class Program {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int days = scanner.nextInt();
20 days = 480 hours
480 hours = 28800 minutes
28800 minutes = 172800 secend
System.out.println("172800");
}
}
0
do you know what is wrong here ?
int hours = 0;
int minutes = 0;
int seconds = 0;
System.out.println(0);