扫描代码: private void Button_Click(object sender, RoutedEventArgs e) { a5.Items.Clear(); string str = this.a1.Text; int start = int.Parse(a2.Text); int end = int.Parse(a3.Text); Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = start; i < end+1;…