Dim constants(8) As Integer
Dim decimalval As Integer
Dim n1, n2, n3, n4, n5, n6, n7, n8 As Integer
Dim value, values As Integer
Console.WriteLine("Number base converter")
Console.WriteLine("This would allow you to change into different base formats")
Console.WriteLine("Highest base allowed is 16")
Console.WriteLine("Highest input base allowed is 10")
Console.WriteLine("Type the base of the input number type")
Console.WriteLine("Type the base of the output number type")
output=Console.ReadLine()
Console.WriteLine("Constants used are " & constants(8) & constants(7) & constants(6) & constants(5) & constants(4) & constants(3) & constants(2) & constants(1) & constants(0))
Console.WriteLine("Enter the input number")
numberin=Console.ReadLine()
n1=numberin.Substring(0,1)
n2=numberin.Substring(1,1)
n3=numberin.Substring(2,1)
n4=numberin.Substring(3,1)
n5=numberin.Substring(4,1)
n6=numberin.Substring(5,1)
n7=numberin.Substring(6,1)
n8=numberin.Substring(7,1)
decimalval=(n8+(n7*(input^1))+(n6*(input^2))+(n5*(input^3))+(n4*(input^4))+(n3*(input^5))+(n2*(input^6))+(n1*(input^7)))
Console.WriteLine(decimalval)
values=value-constants(8-count)
values=value-constants(8-count)
Console.WriteLine("Answer is " & answers(0) & answers(1) & answers(2) & answers(3) & answers(4) & answers(5) & answers(6) & answers(7))