Dim myString, myString1, Pseudocode as string
myString = console.ReadLine()
myString1 = myString.ToLower()
if myString1.Contains("console.readline()")
for i = 0 to myString1.Length
if myString.Chars(i) <> " " then
Pseudocode = Pseudocode + myString.Chars(i)
else if myString1.Contains("console.writeline") then
if myString(z) = "&" then
Pseudocode = Pseudocode + ","
if myString1(z) = "(" then
Pseudocode = Pseudocode + "["
Else if myString1(z) = ")" then
Pseudocode = Pseudocode + "]"
Pseudocode = Pseudocode + myString(z)
else if myString1.Contains("dim") then
if myString1.Contains("string") then
Else if myString1.Contains("integer")
Else if myString1.Contains("char")
Else if myString1.Contains("decimal")
Else if myString1.Contains("Boolean")
if myString1(y + 3) = " " And myString1(y + 4) = "a" And myString1(y + 5) = "s" And myString1(y + 6) = " " then
if myString1(y) = "(" then
Pseudocode = Pseudocode + "["
Else if myString1(y) = ")" then
Pseudocode = Pseudocode + "]"
Pseudocode = Pseudocode + myString(y + 3)
Else if mystring1.Contains("else if") then
Pseudocode = Pseudocode + "<-"
Pseudocode = Pseudocode + myString(a)
Pseudocode = Pseudocode + "THEN"
Else if mystring1.Contains("do while") then
Pseudocode = Pseudocode + "<-"
Pseudocode = Pseudocode + myString(a)
Pseudocode = Pseudocode + " DO"
Else if myString1.Contains("else") then
Pseudocode = myString.ToUpper()
Else if myString1.Contains("end if")
Else if myString1.Contains("loop")
Else if myString1.Contains("do")
Else if mystring1.Contains("if") then
Pseudocode = Pseudocode + "<-"
Pseudocode = Pseudocode + myString(a)
Pseudocode = Pseudocode + "THEN"
Else if myString1.Contains("for") then
Pseudocode = Pseudocode + "<-"
else if (myString(x) = "t") OR (mystring(x) = "o")
If myString(x-1) = " " OR myString(x+1) = " "
if mystring(x + 1) = "o" OR myString(x - 1) = "t" then
If myString(x + 2) = " " OR myString(x - 2) = " " then
Pseudocode = Pseudocode + myString(x).ToString().ToUpper()
Pseudocode = Pseudocode + myString(x)
Else if myString1.Contains("next")
Pseudocode = Pseudocode + myString(b)
Else if mystring1.Contains("loop until") then
Pseudocode = Pseudocode + "<-"
Pseudocode = Pseudocode + myString(a)
Else if myString.Contains("=") then
Pseudocode = Pseudocode + "<-"
Pseudocode = Pseudocode + myString(b)
console.WriteLine(Pseudocode)