Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab-inlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
codecatalyst33
gitlab-inlab
Commits
36a663ab
Commit
36a663ab
authored
Aug 10, 2017
by
CHINTHAREDDY SAI CHARITH REDDY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload new file
parent
f2e9ecec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
lab1/problem4.cpp
lab1/problem4.cpp
+32
-0
No files found.
lab1/problem4.cpp
0 → 100644
View file @
36a663ab
#include <algorithm>
#include<iostream>
#include<ctime>
#include<cstdlib>
using
namespace
std
;
int
main
(){
int
n
;
cin
>>
n
;
int
a
[
n
][
n
],
b
[
n
][
n
],
c
[
n
][
n
];
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
for
(
int
j
=
0
;
j
<
n
;
j
++
)
{
cin
>>
a
[
i
][
j
];}
}
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
for
(
int
j
=
0
;
j
<
n
;
j
++
)
{
cin
>>
b
[
i
][
j
];}}
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
for
(
int
j
=
0
;
j
<
n
;
j
++
)
{
c
[
i
][
j
]
=
0
;
for
(
int
k
=
0
;
k
<
n
;
k
++
)
{
c
[
i
][
j
]
=
(
c
[
i
][
j
])
+
(
a
[
i
][
k
]
*
b
[
k
][
j
]);}}}
for
(
int
i
=
0
;
i
<
n
;
i
++
){
for
(
int
j
=
0
;
j
<
n
;
j
++
)
{
cout
<<
c
[
i
][
j
]
<<
" "
;}
cout
<<
"
\n
"
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment