题库
案例题

有程序段如下:
private void button1_Click(objecet sender, EventArgs e)
{
        int x=1234, y=0, k;
        while (x>0)
        {
               k=x%10;
               x=x/10;
               y=y+k;
         }
         textBox1.Text=y.ToString();
}
程序运行后,单击窗口中的button1按钮,在文本框textBox1中显示的内容是        


参考答案: 查看答案 查看解析 APP刷题
相关知识点试题
相关试卷
咨询