Professional Documents
Culture Documents
16 >= 18
If Age >= 18 Then
i.e. False
Range("B4").Value = _
"Naughty stuff here..."
End If
20 >= 18
If Age >= 18 Then
i.e. True
Range("B4").Value = _
"Naughty stuff here..."
End If
yes
yes
no
yes yes
Show Show
“You will be a CEO!” “You will get A+!”
Showing the Question
• The fortune teller program uses the following code to
ask the question:
Number = InputBox("Welcome to the Fortune Teller!" & _
vbNewLine & _
"Please give me a number from 1 to 10.")