Help running script?

I have this code

Module cashthing

Sub Main() Dim price As Decimal Dim quantity As Decimal system.console.write("Enter Price") startingK = system.console.readline() system.console.write("Enter quantity:") endingK = system.console.readline() 'do calculations cost = price * quantity tax = price * quantity * 1.15 system.console.writeline("the cost is: " & formatcurrency(cost)) system.console.writeline("the tax is: ") & formatcurrency(tax)) End Sub End Module 

And was wondering how I can compile it in command line. I have tried cscript and that stuff but it won’t work and I just get a message saying “there is no script engine for extension .vb”.

submitted by /u/HerbertTheHippo
[link] [comments]

Leave a Reply