11-10-2009, 09:37 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.3; Display ODD number between 1 to 100 using VB Console Application Code: Module table
Sub Main()
Dim number, answer, counting As Integer
number = 1
While number < 100
answer = number Mod 2
If answer <> 0 Then
counting = counting + 1
End If
number = number + 1
End While
Console.WriteLine("Total odd numbers between 1 to 100 are = {0} ", counting)
number = Console.Read()
End Sub
'This Table program copued from bzupages
End Module Wrong hay.. Asali wala kal upload ho ga... |