下面的事件过程采用公式计算π的值,填空将程序补充完整。
private void button1_ Click(object sender, EventArgs e){}
int i=l,n=l,s=l;
double pi= 0,t=l;
do
{
pi= pi+s*t;
i= ;
s= ;
t= ;
}while (t ﹥= 0.00001);
textBox1.Text = Convert.ToString(4*pi);
}
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服