Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Imports System
  2.  
  3. Public Module Module1
  4. Public Sub Main()
  5.  
  6. dim check as boolean = false
  7. dim symbol as string=""
  8.  
  9. console.WriteLine ("please enter a symbol")
  10. Do
  11. try
  12. symbol = console.ReadLine()
  13. If symbol = "+" Or "-" Or "/" Or "*" Then
  14. check = True
  15. Else
  16. console.WriteLine ("that is not a symbol, please try again")
  17. End If
  18. catch ex as Exception
  19. end try
  20.  
  21. Loop Until check = True
  22.  
  23. console.WriteLine("{0}",symbol)
  24.  
  25. End Sub
  26. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement