using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace xunhuan
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
double x = 0;
double a = 2;
private void Form1_Load(object sender, EventArgs e)
{
do
{
label1.Text = x.ToString();
if (radioButton1.Checked == true)
{
x = x + a;
continue;
}
if (radioButton2.Checked == true)
{
break;
}
}
while (true);
}
}
}
这个是源代码