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

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 > Welcome to all the Students > Tutorial

Tutorial Teach,Learn,Share,Discuss and Do everything other than Class Lectures


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 26-06-2008, 11:47 PM   #1
Multiplication of Array in OOPs
Muhammad Sohail Akhtar Muhammad Sohail Akhtar is offline 26-06-2008, 11:47 PM

hi,
This is Sohail,I am studying in MCS 3rd semester,from BZU sub-campus DGKhan.
Multiplication of Array

main()
{
int a[2][2],b[2][2],c[2][2],i,j,k;
for(i=1;i<=2;i++)
for(j=1;j<=2;j++)
{
cout<<"Enter the 1st array";
cin>>a[i][j];
}
for(i=1;i<=2;i++)
for(j=1;j<=2;j++)
{
cout<<"Enter the 2nd array";
cin>>b[i][j];
}
for(i=1;i<=2;i++)
for(j=1;j<=2;j++)
{
c[i][j]=0;
}
for(i=1;i<=2;i++)
for(j=1;j<=2;j++)
for(k=1;k<=2;k++)
{
c[i][j]+ =c[i][k]*c[k][j];
}
for(i=1;i<=2;i++)
for(j=1;j<=2;j++)
{
cout< cout<<"\n";
}
getch();
}


 
Muhammad Sohail Akhtar's Avatar
Muhammad Sohail Akhtar
First Time Poster!

Join Date: Jun 2008
Location: D.G.Khan
Age: 37
Posts: 1
Contact Number: 0333-3951814
Program / Discipline: MCS07
Class Roll Number: mcs-07-03
Views: 2348
Reply With Quote
Reply

Tags
array, multiplication, oops


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

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
TEACHER: John, why are you doing your math multiplication on the floor? Salman Mushtaq Funny Cut Piece 0 14-10-2011 02:35 AM
Program to enter 10 integers in a single-dimension array and then print out the array in ascending order bonfire Object Oriented Programming 0 09-03-2011 12:23 AM
[PHP] Multidimensional Array BSIT07-01 Tutorial 2 14-06-2008 02:15 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 02:14 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.