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)

Image of Checkly

4 Playwright Locators Explained: Which One Should You Use?

- locator('.cta'): Fast but brittle
- getByText('Click me'): User-facing, but can miss broken accessibility
- getByRole('button', { name: 'Click me' }): Most robust, best for a11y
- getByTestId('cta-button'): Stable, but ignores UX

Watch video

👋 Kindness is contagious

If you found this post helpful, please leave a ❤️ or a friendly comment below!

Okay