> &(%q`04
bjbjqPqP .::42}$0h666
}6}66V@a@A
}0xvvava6,
d
CSC 151 Homework #2
Write a program that add and multiply two matrices, call them matrix A and matrix B. Both matrices are of the same size, n x n.
The user should enter the element values of both matrices. Use two-dimensional arrays to store these elements.
Use two functions, function Add to add the two matrices and function Multiply to multiply the two matrices.
Output the results in a matrix format from the main function.
http://login.live.com/login.srf?lc=1033&sf=1&id=2&ru=http://www.hotmail.msn.com/cgi-bin/sbox%3flc%3d1033&tw=0&fs=0&kv=0&cb=
4
hahaCJ aJ haCJ aJ x 4
&F
&F
$dN4
,1h/ =!"#$%@@@NormalCJ_HaJmH sH tH DA@DDefault Paragraph FontVi@VTable Normal :V44
la(k@(No List4 z4x6!!!!!!qZ!qZ!!!!x600000 0 0 0000x6K0KI0I0I0I0I04
4
4
6666M
ZJhl̍Iuf5Xh^`OJQJo(h^`OJQJo(ohpp^p`OJQJo(h@@^@`OJQJo(h^`OJQJo(oh^`OJQJo(h^`OJQJo(h^`OJQJo(ohPP^P`OJQJo(h^`OJQJo(h^`OJQJo(ohpp^p`OJQJo(h@@^@`OJQJo(h^`OJQJo(oh^`OJQJo(h^`OJQJo(h^`OJQJo(ohPP^P`OJQJo(h^`OJQJo(h^`OJQJo(ohpp^p`OJQJo(h@@^@`OJQJo(h^`OJQJo(oh^`OJQJo(h^`OJQJo(h^`OJQJo(ohPP^P`OJQJo(uM
Jhl a@49V4P@UnknownGz Times New Roman5Symbol3&z Arial?5 z Courier New;Wingdings"h{Cư*FC)TTr433
3AHX(?a2SWrite a program that add and multiply two matrices, call them matrix A and matrix BdtkstatOh+'0 ,< LX
x
TWrite a program that add and multiply two matrices, call them matrix A and matrix BdtkNormalstat6Microsoft Office Word@6F@D,-@yI@AT՜.+,0<hp|
ksu3TWrite a program that add and multiply two matrices, call them matrix A and matrix BTitle
!"#$'*,+./0123456789:;<Root Entry FTލ)1Table
WordDocument.SummaryInformation(DocumentSummaryInformation8CompObjqMsoDataStore
܍TލVCCDXEIYBO0ELCQ==2
܍Tލ
FMicrosoft Office Word Document
MSWordDocWord.Document.89qDocumentLibraryFormDocumentLibraryFormDocumentLibraryForm
This value indicates the number of saves or revisions. The application is responsible for updating this value after each revision.