Java day 4

yaswanth krishna - Dec 10 '24 - - Dev Community

class Theatre
{
int ticketprice=820;

public static void main(String[] args)
{
Theatre pvr =new Theatre();
pvr.bookticket(3);

}
public void bookticket(int count)
{
int total=ticketprice/count;
System.out.println(total);
}

}

. . . . . . . . . . . . . . . . . . . . . . . .