首页 > 题库 > 学历提升 > 自学考试 > 自考本科 > 填空题

有程序段如下::
private void Form1_ Load(object sender, EventArgs e)
{
listBox1.Items.Clear();
int x=0;
for(int i=1;i<=5;i++)
{
X=2*x+1:
listBox1.Items.Add(x+1);
}
}
private void button1_ Click(object sender. EventArgs e)
{
Int i,s=0;
for(i=0;i< listBox1.Items.Count; i++)
s=s+ Convert.ToInt32(listBox1.Items[i]);
textBox1.Text= s.ToString();
}
程序运行后,单击窗口中的button1按钮,在文本框textBox1中显示的内容是_______.。


参考答案: 查看答案 查看解析 下载APP畅快刷题

相关知识点试题

相关试卷