These are called "first-time bars" and "second-time bars", or "first and second endings". They are also known as "volta brackets" and although there are normally 2 volta brackets, there is no limit to how many there can be.
These are called "first-time bars" and "second-time bars", or "first and second endings". They are also known as "volta brackets" and although there are normally 2 volta brackets, there is no limit to how many there can be.