close

int x = System.Convert.ToInt32(textBox1.Text);
int y = System.Convert.ToInt32(textBox1.Text);
string z= System.Convert.ToString(x*y);
MessageBox.Show(z,"結果");

int x = System.Convert.ToInt32(textBox1.Text); string y=System.Convert.ToString(x*x*3.14); string z=System.Convert.ToString(x*2*3.14); MessageBox.Show("圓的面積="+y+"\n圓的周長="+z,"結果");


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 fatfather 的頭像
    fatfather

    2011年還是補不了09跟10的記憶

    fatfather 發表在 痞客邦 留言(0) 人氣()