View Single Post
  #1  
Old 11-10-2009, 09:26 PM
.BZU.'s Avatar
.BZU. .BZU. is offline


 
Join Date: Sep 2007
Location: near Govt College of Science Multan Pakistan
Posts: 9,693
Contact Number: Removed
Program / Discipline: BSIT
Class Roll Number: 07-15
.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute
Cool Assignmnet#2.2; Identify given number odd/even using VB Console Application

Assignmnet#2.2; Identify given number odd/even using VB Console Application
Code:
Module table
    Sub Main()
        Dim number As String
        Dim  cinnumber, answer As Integer
        number = Console.ReadLine()
        cinnumber = number
        answer = cinnumber Mod 2
        If answer = 0 Then
            Console.WriteLine("even ")
        Else
            Console.WriteLine("odd")
        End If

        Console.WriteLine("Press Enter to Close this window")
        number = Console.Read()
    End Sub
    'This Table program copied from bzupages
End Module

__________________
(¯`v´¯)
`*.¸.*`

¸.*´¸.*´¨) ¸.*´¨)
(¸.*´ (¸.
Bzu Forum

Don't cry because it's over, smile because it happened
Reply With Quote