Which of the following is a function of the heart valves?  To allow the blood to flow through the heart smoothly. To prevent blood from leaking back against the main flow. Both.