fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim decCost As Decimal
  6. Dim intNumber As Integer
  7. If Integer.TryParse("5", intNumber) AND Decimal.TryParse("1.99", decCost) Then
  8. Console.WriteLine(decCost * intNumber)
  9. End If
  10. End Sub
  11. End Class
Success #stdin #stdout 0.07s 13472KB
stdin
Standard input is empty
stdout
9.95