write a console application to divide two number & provide error handling technique


Module Module1

    Sub Main()
        Dim a, b, c As Integer
        a = 0
        b = 100
        Try
            c = b / a
        Catch ex As Exception
            Console.WriteLine(ex.ToString())
            Console.WriteLine("divide by zero exception error")
 End Try
    End Sub

End Module

Related Posts Plugin for WordPress, Blogger...

Engineering material

GTU IDP/ UDP PROJECT

GTU IDP/ UDP PROJECT

Patel free software download

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP