Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String series = scanner.nextLine();
- int season = Integer.parseInt(scanner.nextLine()),
- volume = Integer.parseInt(scanner.nextLine());
- double time = Double.parseDouble(scanner.nextLine()),
- minutes = (double) season * volume * time * 1.2 + season * 10;
- System.out.println("Total time needed to watch the " + series + " series is " + (int) minutes + " minutes.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement