#include<iostream.h>
#include<conio.h>
main()
{
int ary1[3][3],ary2[3][3],ary[18],index,temp,max;
cout<<"Please enter the Elements of First Matrix: ";
for(int n=0;n<3;n++)
{
for(int m=0;m<3;m++)
{
cin>>ary1[n][m];
}
}
cout<<"Please enter the Elements of second Matrix: ";
for(int n=0;n<3;n++)
{
for(int m=0;m<3;m++)
{
cin>>ary2[n][m];
}
}
//Copying first array into single dimenional array
index=0;
for(int n=0;n<3;n++)
{
for(int m=0;m<3;m++)
{
ary[index]=ary1[n][m];
index++;
}
}
//Copying second array into single dimenional array
index=9;
for(int n=0;n<3;n++)
{
for(int m=0;m<3;m++)
{
ary[index]=ary2[n][m];
index++;
}
}
// Here sorting the third array in which ary1 and ary2 are copped....
// This sorting method is bubble sorting method in decending order.
for(int n=0;n<18;n++)
{
for(int m=n;m<18;m++)
{
if(ary[n]<ary[m])
{
temp=ary[n];
ary[n]=ary[m];
ary[m]=temp;
}
}
}
//Show arranged array in decending order
cout<<"Sorted Values from Both the Matrices are: "<<endl;
for(int n=0;n<18;n++)
{
cout<<ary[n]<<" ";
}
getch();
}
Find in attachment~R
AR KOTWALOn Sat, Apr 30, 2011 at 3:44 PM, Smart Cheater
<mc110200885@vu.edu.pk> wrote:
s.s.batool shahiba
Meri assignment ko ap apnay name se kion publish kar rahi hain.
Smart Cheater
Skype: smart.cheater
--
Earning program links, Cell number, Websites/Groups Links, Adult contents, Spamming, Immoral & Rudish talk are strictly prohibited and banned in group.
Follow these detailed Group Rules, otherwise you will be banned at any time.
https://docs.google.com/document/d/1YJxA8x3_U7C1lRc0EXfLrJpco4A1XkB1vDxOTqOd3Jg/edit?hl=en&authkey=CNDy9tkJ
Group Email Address:
Attock-VU-Group@Googlegroups.Com
Join group by sending a blank email from University ID at:
Attock-VU-Group+Subscribe@Googlegroups.Com
Attention......!!!!!!!!!!!
Our Google Group has a problem, mostly members are facing in posting mails, If any one has this problem then forward that sending failed email at this address:
Manager.atk.grp@gmail.com
We will unsubscribe all bouncing IDs from group to resolve this issue.
Sorry for inconvenience, we have no another option for resolving this issue.
Members are requested to empty their inbox to avoid from this issue.
--
*Zaroorat tor deti hai gharur o beniazi ko Iqbal,
Na hoti koi majburi to har banda khuda hota.~R
BEST REGARDS
Accountant Assistant of Jamiya
PLZ REMEMBER ME IN UR PRAYERS
raziq_khan2007@yahoo.comarazaqkotwal@gmail.com*
--
Earning program links, Cell number, Websites/Groups Links, Adult contents, Spamming, Immoral & Rudish talk are strictly prohibited and banned in group.
Follow these detailed Group Rules, otherwise you will be banned at any time.
https://docs.google.com/document/d/1YJxA8x3_U7C1lRc0EXfLrJpco4A1XkB1vDxOTqOd3Jg/edit?hl=en&authkey=CNDy9tkJ Group Email Address:
Attock-VU-Group@Googlegroups.Com
Join group by sending a blank email from University ID at:
Attock-VU-Group+Subscribe@Googlegroups.Com
Attention......!!!!!!!!!!!
Our Google Group has a problem, mostly members are facing in posting mails, If any one has this problem then forward that sending failed email at this address:
Manager.atk.grp@gmail.com
We will unsubscribe all bouncing IDs from group to resolve this issue.
Sorry for inconvenience, we have no another option for resolving this issue.
Members are requested to empty their inbox to avoid from this issue.