Advertisement
veronikaaa86

5. Число от 100 до 200

Dec 23rd, 2021
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Sub Demo()
  2. Dim num As Integer
  3. num = 20000
  4.  
  5. Dim result As String
  6. If num < 100 Then
  7. result = "Less than 100"
  8. ElseIf num <= 200 Then
  9. result = "Between 100 and 200"
  10. Else
  11. result = "Greater than 200"
  12. End If
  13.  
  14. Debug.Print result
  15. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement