I’m not very good at VB, so I don’t know how to make line 11 work. Also, I’m using dotnetfiddle.
Public Sub Main()
dim num1 as integer dim num2 as integer dim sign as string dim answer as integer do num1 = console.readline() num2 = console.readline() sign = console.readline() If sign = "/" or sign = "*" or sign = "+" or sign = "-" then answer = num1 sign num2 else answer = 0 end if console.writeline(answer) Loop until num1 = 0
It’s the answer = num1 sign num2 bit