randomposts
Powered by Blogger.

Odd-Even Programming Code in Console Application Visual Studio

No comments


#BELOW PROGRAMMING CODE ODD-EVEN CONSOLE  HERE...

Module oddeven /* oddeven is an Module Name */
    Dim i As Integer

    Sub Main()
        System.Console.Write("Enter Your Number:-")___(Don't Missing Syntax required)*
        i = System.Console.ReadLine___(Don't Missing Syntax required)*
        If (i Mod 2 = 0) Then
            System.Console.WriteLine("Even Number")___(Don't Missing Syntax required)*
        Else
            System.Console.WriteLine("odd")___(Don't Missing Syntax required)*

        End If
        System.Console.Read()___(Don't Missing Syntax required)*
    End Sub

End Module

Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).

No comments :

Post a Comment