There are 70 seats in the cinema hall. It is necessary to count with each sale how many tickets are left, so that after 70 tickets there is a message that all tickets are sold out. So, tell me what to change and-or what to add to the code to implement this function.
import java.util.*; public class Kino { public static void main(String[] args) { Scanner scn = new Scanner(System.in); System.out.println("Сколько Вам лет?"); int alt = scn.nextInt(); if (alt <= 5) { System.out.println("Цена билета: бесплатно"); } else if (alt >= 5 && alt <= 12) { System.out.println("Цена билета: 5р."); } else if (alt >= 13) { System.out.println("Цена билета: 10р."); } } }