Module Calcular
Function calcular(ByVal a As Integer, ByVal b As Integer, ByVal c As Integer)
Dim resul As Double
resul = (b ^ 2 - (4 * a * c))
Return resul
End Function
Sub Main()
Dim a As Integer = 1, b As Integer = 5, c As Integer = 2, t As Double
Dim resul As Double
t = resul(a, b, c)
System.Console.WriteLine(t)
End Sub
End Module
Alguien ve ahi porque me da error y no compila? porque no me da el resultado...