Don't forget getting a job too. You won't be able to study for enough years to qualify for citizenship. The Swiss already thought of that.
New rules are currently due to come in in 2017 to require applicants to have a C permit too, though that law may get delayed from the looks of recent reports. However, to qualify for a C permit you'd have to live here for 10 years, speak/write a Swiss language (which one depends on where in Switzerland you live) and be integrated into Swiss life. Without a C permit, you'll have no chance of getting citizenship.