Flowchart Dim a as Integer a = 20 If a > 5 ���� Msg. Box(“a is more than 5”)
Flowchart Dim a as Integer a = 20 ���� If a > 5 Msg. Box(“a is not more than 5”) ���� Msg. Box(“a is more than 5”)
ตวอยาง Dim a as Integer a = 20 If a > 80 Then Msg. Box(“a is more than 80”) Else. If a > 50 Msg. Box(“a is more than 50 but less than 80”) Else. If a > 30 Msg. Box(“a is more than 30 but less than 50”) Else Msg. Box(“a is less than 30”) End If
Flowchart Dim a as Integer a = 20 If a > 80 ��Msg. Box(“a is not more than 80”) �� �� If a > 50 �� �� If a > 30 �� ���� Else Msg. Box(“a is less than 30”) Msg. Box(“a is more than 50 but less than 80”) Msg. Box(“a is more than 30 but less than 50”)