목차
Java
C언어
비주얼 베이직
C언어
비주얼 베이직
본문내용
se{
printf("F");
}
}
비주얼 베이직
Private Sub Command1_Click()
Dim Userinput As Integer
Userinput = Text1.Text
Select Case Userinput
Case Is >= 90 And Userinput <= 100
Text2.Text = "A"
Case Is >= 80 And Userinput < 90
Text2.Text = "B"
Case Is >= 70 And Userinput < 80
Text2.Text = "C"
Case Is >= 60 And Userinput < 70
Text2.Text = "D"
Case Is < 60
Text2.Text = "F"
End Select
End Sub
Private Sub Form_Load()
End Sub
if 문
Private Sub Command1_Click()
Dim Userinput As Integer
Userinput = Text1.Text
If (Userinput >= 90) Then
Text2.Text = "A"
ElseIf Userinput >= 80 And Userinput < 90 Then
Text2.Text = "B"
ElseIf Userinput >= 70 And Userinput < 80 Then
Text2.Text = "C"
ElseIf Userinput >= 60 And Userinput < 70 Then
Text2.Text = "D"
Else
Text2.Text = "F"
End If
End Sub
Private Sub Form_Load()
End Sub
printf("F");
}
}
비주얼 베이직
Private Sub Command1_Click()
Dim Userinput As Integer
Userinput = Text1.Text
Select Case Userinput
Case Is >= 90 And Userinput <= 100
Text2.Text = "A"
Case Is >= 80 And Userinput < 90
Text2.Text = "B"
Case Is >= 70 And Userinput < 80
Text2.Text = "C"
Case Is >= 60 And Userinput < 70
Text2.Text = "D"
Case Is < 60
Text2.Text = "F"
End Select
End Sub
Private Sub Form_Load()
End Sub
if 문
Private Sub Command1_Click()
Dim Userinput As Integer
Userinput = Text1.Text
If (Userinput >= 90) Then
Text2.Text = "A"
ElseIf Userinput >= 80 And Userinput < 90 Then
Text2.Text = "B"
ElseIf Userinput >= 70 And Userinput < 80 Then
Text2.Text = "C"
ElseIf Userinput >= 60 And Userinput < 70 Then
Text2.Text = "D"
Else
Text2.Text = "F"
End If
End Sub
Private Sub Form_Load()
End Sub
소개글