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

Register FAQ Community Calendar New Posts Navbar Right Corner
HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Institute of Computing > Bachelor of Science in Information Technology > BsIT 5th Semester > Visual Programming

Visual Programming Sir Ahsan


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-12-2009, 04:45 PM
shmsa's Avatar
Grown up punk

 
Join Date: Oct 2007
Location: Muslim Town Multan
Posts: 195
Contact Number: 0322-6196713
Program / Discipline: BSIT
Class Roll Number: 07-22
shmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the rough
Default Assignment Q1:Add two matrices of 2x3 using vb console Application

Code:
Module additionMatrices

    Sub Main()
        Dim ar1 As Integer(,)
        ar1 = New Integer(1, 2) {}
        Dim i, j As Integer
        For i = 0 To 1
            For j = 0 To 2
                ar1(i, j) = Console.ReadLine()

            Next
        Next
        For i = 0 To 1
            For j = 0 To 2
                Console.Write(ar1(i, j) & vbTab)
            Next
            Console.Write(vbCrLf)
        Next


        Dim ar2 As Integer(,)
        ar2 = New Integer(1, 2) {}

        For i = 0 To 1
            For j = 0 To 2
                ar2(i, j) = Console.ReadLine()

            Next
        Next
        For i = 0 To 1
            For j = 0 To 2
                Console.Write(ar2(i, j) & vbTab)

            Next
            Console.Write(vbCrLf)
        Next

        For i = 0 To 1
            For j = 0 To 2
                Console.Write(ar1(i, j) + ar2(i, j) & vbTab)
            Next
            Console.Write(vbCrLf)
        Next
    End Sub

End Module

Reply With Quote
  #2  
Old 10-12-2009, 08:01 AM
.BZU.'s Avatar


 
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
Default Re: Assignment Q1:Add two matrices of 2x3 using vb console Application

thanks for you contribution , for bzupages..
__________________
(¯`v´¯)
`*.¸.*`

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

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

Tags
2x3, application, assignment, console, matrices, q1add


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Factorial Series (SIMPLE,EXTENDED) Visual Basic Console Application Code By Wasif .BZU. Visual Programming 0 15-12-2009 11:22 PM
Assignmnet#2.3; Display ODD number between 1 to 100 using VB Console Application .BZU. Visual Programming 1 12-10-2009 02:56 PM
Assignmnet#2.2; Identify given number odd/even using VB Console Application .BZU. Visual Programming 0 11-10-2009 09:26 PM
Assignmnet#2.1; Display Table of giving number using VB Console Application .BZU. Visual Programming 0 11-10-2009 08:59 PM
Assignmnet#1; Arithmetic operation using VB Console Application .BZU. Visual Programming 1 04-10-2009 10:22 PM

Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 11:40 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.