Which control structure would be most appropriate for the following scenario: we want to run either print statement 1 if the boolean variable x is true, and print statement 2 if x is false

if (x)
{
    // run print statement 1
}
else
{
    // run print statement 2
}
  • if (x)
    {
        // run print statement 1
    }
    // run print statement 2
  • if (!x)
    {
        // run print statement 1
    }
    // run print statement 2
  • if (!x)
    {
        // run print statement 1
    
    }
    else if (x)
    {
        // run print statement 2
    }

There are no hints for this question