BMI
2009/10/02 11:08
瀏覽346
迴響1
推薦0
引用0
Dim ghost, ghost1, bmi, title As Integer
title = 100
FileOpen(1, "C:/940304.SM", OpenMode.Input)
For i = 1 To 3
Input(1, ghost)
Input(1, ghost1)
bmi = ghost1 / (ghost / 100) ^ 2
If bmi < title Then title = bmi
Next
TextBox1.Text = "最小BMI是" & title & ","
If (title < 20) Or (title > 25) Then
TextBox1.Text = TextBox1.Text & "不正常"
Else
TextBox1.Text = TextBox1.Text & "正常"
End If
FileClose()
End Sub
你可能會有興趣的文章:
限會員,要發表迴響,請先登入



