Advertisement
YavorGrancharov

Cinema

Jan 22nd, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Cinema {
  4.     public static void main(String[] args) {
  5.         Scanner console = new Scanner(System.in);
  6.         String projection = console.nextLine();
  7.         int r = Integer.parseInt(console.nextLine());
  8.         int c = Integer.parseInt(console.nextLine());
  9.  
  10.         if (projection.equals("Premiere")) {
  11.             System.out.println(12.00 * r * c + " leva");
  12.         } else if (projection.equals("Normal")) {
  13.             System.out.println(7.50 * r * c + " leva");
  14.         } else {
  15.             System.out.println(5.00 * r * c + " leva");
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement