用python計算矩形面積 vb通過輸入框輸入矩形的長和寬,計算并輸出矩形面積,求解!謝謝了,俺剛開始學那個不怎么會?。?/h1>
vb通過輸入框輸入矩形的長和寬,計算并輸出矩形面積,求解!謝謝了,俺剛開始學那個不怎么會啊?Private Sub Command1uclick()dim a as single,B as singl
vb通過輸入框輸入矩形的長和寬,計算并輸出矩形面積,求解!謝謝了,俺剛開始學那個不怎么會???
Private Sub Command1uclick()
dim a as single,B as single
a=InputBox(“please input the length of rectangle”
B=InputBox(“please input the width of rectangle”
dim s as single
s=a*B
msgbox(“the area of rectangle is s=”&a&“×”&B&“=”&s)