bool isAdult = true;
bool hasPermission = false;

if (isAdult && hasPermission)
{
    Console.WriteLine("Access granted.");
}
else
{
    Console.WriteLine("Access denied.");
}