操行84,學科70
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conduct, score As Integer
conduct = InputBox("請輸入操行成績:", "操行成績")
score = InputBox("請輸入學期成績", "學期成績")
If conduct >= 80 Then
If score >= 80 Then
If score >= 90 Then
MsgBox("操行" & conduct & "分,學科" & score & "分,獎學金 2,000元")
Else
MsgBox("操行" & conduct & "分,學科" & score & "分,獎學金 1,000元")
End If
Else
MsgBox("學科" & score & "分,未達申請條件")
End If
MsgBox("操行" & conduct & "分,未達申請條件")
End If
End
End Sub
End Class
沒有留言:
張貼留言