If Else Example

If Else Example

Imports System
Imports System.Collection.Generric
Imports System.Linq
Imports System.Text
Imports System.Threading.Tasks

Namespace ConsoleApplicatoinIf
    Class Program
        Private Shared Sub Main(ByVal args As String())
            Dim int_Year As Integer
            Console.wrileLine("Enter Any Year")
            int_Year = Integer.parseInt(console.readLine())

            If int_Year Mod 4 = 0 Then
                console.writeLine("This is Leap Year {0}", int_Year)
            Else
                console.writeLine("This is Not Leap Year {0}", int_Year)
            End If
        End Sub
    End Class
End Namespace


©Copyright 2016 All Rights Reserved LearnDotNetHome.com