My loop exercise in Visual Studio