if (s1 == true && s2 == false) { lamp1 activate and latches } if (s1 == true && s2 == true) {

if (s1 == true && s2 == false)
{
lamp1 activate and latches
}

if (s1 == true && s2 == true)
{
Lamp 1 turns off
}
Was this page helpful?