c# 按BUTTON显示从1*2*3*………………*50,我这哪里错啦?显示 int不包含tostring的定义
privatevoidbutton1_Click(objectsender,EventArgse){intsum=1;for(inti=1;i<=50;i++){sum=...
private void button1_Click(object sender, EventArgs e)
{
int sum = 1;
for (int i = 1; i <= 50; i++)
{
sum = sum * i;
}
textBox1.Text = (sum).toString(); 展开
{
int sum = 1;
for (int i = 1; i <= 50; i++)
{
sum = sum * i;
}
textBox1.Text = (sum).toString(); 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询