Drop links or images here to add them to the editor.

Working with logical vectors

When we apply an arithmetic function on a logical vector, TRUE is equivalent to 1 and FALSE is equivalent to 0. Apply a function to the vector elevator to calculate the total number of persons that is allowed to enter the elevator.