DEV Community

AmalaReegan
AmalaReegan

Posted on

Day9 :Task2

Input

public class Ticket
{
public static void main(String[]args)
{
int ticketprice=120;

int numberoftickets=3;

int totalprice=ticketprice * numberoftickets;

System.out.println(360);
}
}
Enter fullscreen mode Exit fullscreen mode

Output#

Image description

Top comments (0)