Professional Documents
Culture Documents
A C Program To Perform Various Operations
A C Program To Perform Various Operations
OPERATIONS ON MATRICES
A PROJECT BY-
We would like to express our special thanks of gratitude to our professor “Mr. Balaram Ghosal” sir for
his able guidance and support in completing our project.
We would also like to thank our institution for providing the opportunity to us, the students, to research
and gain deeper knowledge about the subject.
INTRODUCTION
i=0, j=0
yes yes
i<r J<c C[i][j]=A[i][j]+B[i][j]
no no
End
Start FLOWCHART FOR MATRIX SUBTRACTION
i=0, j=0
yes yes
i<r J<c C[i][j]=A[i][j]-B[i][j]
no no
End
Start
FLOWCHART FOR MATRIX MULTIPLICATION (part-A)
Read m,n,p,q
no
no yes yes
If(n!=p) for i = 0 to m for j = 0 to n Read a(i)(j)
y
e n
s o
Matrix can’t
multiply
yes yes
for i = 0 to p for i = 0 to q Read b(i)(j)
no
A
Stop
FLOWCHART FOR MATRIX MULTIPLICATION (part-B)
no
yes yes
A for i = 0 to m for j = 0 to q C[i][j]=0
C[i][j]=c[i][j]+a[i] yes
[k]*b[k][j] for i = 0 to n
n no
o
yes yes Print c[i][j]
for i = 0 to m for i = 0 to q
Stopn
o
Start
FLOWCHART FOR TRANSPOSE OF A MATRIX
Read matrix
a[m][n]
Declare variables i, j
i=0, j=0
End
ADVANTAGES OF USING C TO PERFORM MATRIX
OPERATIONS
. TIME SAVING
. EASY TO USE
. CALCULATES AND GIVE PERFECT ANSWERS IN NO TIME
. HIGHER RATE OF ACCURACY
REFERENCES
https://www.knowprogram.com/c-programming/
https://www.geeksforgeeks.org/
https://www.Wikipedia.org/
THANK YOU!!