BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan

BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan (http://bzupages.com/)
-   Visual Programming (http://bzupages.com/237-visual-programming/)
-   -   Assignmnet#2.3; Display ODD number between 1 to 100 using VB Console Application (http://bzupages.com/f237/assignmnet-2-3%3B-display-odd-number-between-1-100-using-vb-console-application-6114/)

.BZU. 11-10-2009 09:37 PM

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...

.BZU. 12-10-2009 02:56 PM

Re: Assignmnet#2.3; Display ODD number between 1 to 100 using VB Console Application
 
1 Attachment(s)
here is the program as promised.

Attachment 10476


All times are GMT +5. The time now is 04:38 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.