THIS IS VERY HARD | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 } }

16th May 2022, 4:05 PM
Aayan
5 Answers
+ 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.
16th May 2022, 5:54 PM
Lisa
Lisa - avatar
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.
16th May 2022, 4:08 PM
Lisa
Lisa - avatar
0
Ok
16th May 2022, 4:09 PM
Aayan
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"); } }
16th May 2022, 4:22 PM
Aayan
0
do you know what is wrong here ? int hours = 0; int minutes = 0; int seconds = 0; System.out.println(0);
16th May 2022, 10:44 PM
zemiak