11-10-2009, 09:26 PM
|
| | | 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 | |
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 |