Early digital computers were electromechanical; electric switches drove mechanical relays to perform the calculation.