If you are a Swiss citizen and you are at least 18, which is the age of majority in Switzerland, you can vote.
If you live in the canton of Glarus, you can vote from the age of 16, but only at the cantonal and communal levels.
More detailed information can be found on the page on the right to vote.