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 10-12-2009, 11:25 PM
taha khan's Avatar
Toddler

 
Join Date: Oct 2007
Location: Mumtaaz Abad Multan
Age: 34
Posts: 22
Class Roll Number: 07-06
taha khan will become famous soon enough
Send a message via Yahoo to taha khan
Default Subtracting two matrices of same order

Subtracting two Matrices
Code:


Module Matsub Sub Main() Dim i, j As Integer Dim Matrix1 As Integer(,) = New Integer(2, 3) {} Dim Matrix2 As Integer(,) = New Integer(2, 3) {} For i = 0 To 1 For j = 0 To 2 Console.Write("Enter an element") Matrix1(i, j) = Console.ReadLine Next Next Console.Write("Matrix 1 is " & vbCrLf) For i = 0 To 1 For j = 0 To 2 Console.Write(Matrix1(i, j) & vbTab) Next Console.Write(vbCrLf) Next For i = 0 To 1 For j = 0 To 2 Console.Write("Enter an element") Matrix2(i, j) = Console.ReadLine Next Next Console.Write("Matrix 2 is " & vbCrLf) For i = 0 To 1 For j = 0 To 2 Console.Write(Matrix2(i, j) & vbTab) Next Console.Write(vbCrLf) Next Console.Write("After Subtracting Matrix1 and Matrix2 result is" & vbCrLf) For i = 0 To 1 For j = 0 To 2 Console.Write(Matrix1(i, j) - Matrix2(i, j) & vbTab) Next Console.Write(vbCrLf) Next End Sub


Last edited by taha khan; 10-12-2009 at 11:37 PM.
Reply With Quote
Reply

Tags
matrices, order, subtracting


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
In order to lead an ideal life, .BZU. Islam 0 18-05-2011 05:36 AM
Lecture 36-37 Order Statistics bonfire Statistics and Probability 0 15-04-2011 01:42 AM
CJ says NRO short order any time soon .BZU. Daily News And halat-e-hazra 0 16-12-2009 07:59 PM
Adding two matrices of same order taha khan Visual Programming 0 10-12-2009 11:22 PM
Assignment Q1:Add two matrices of 2x3 using vb console Application shmsa Visual Programming 1 10-12-2009 08:01 AM

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:54 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.