Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
matjul
/
iax0583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ae42fb6b
authored
Oct 08, 2018
by
matjul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
1056f1f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
lab4task3.c
lab4task3.c
0 → 100644
View file @
ae42fb6b
#include <string.h>
#include <stdio.h>
int
main
(){
char
list
[
10
][
20
];
int
i
,
j
;
char
x
;
printf
(
"Insert 10 names:
\n
"
);
for
(
i
=
0
;
i
<
10
;
i
++
){
scanf
(
"%s"
,
list
[
i
]);
}
for
(
i
=
0
;
i
<
10
;
i
++
){
for
(
j
=
0
;
j
<
20
;
j
++
){
x
=
list
[
i
][
j
];
if
(
x
<
91
&&
x
>
64
){
x
=
x
+
32
;
list
[
i
][
j
]
=
x
;
}
}
}
for
(
i
=
0
;
i
<
10
;
i
++
){
for
(
j
=
0
;
j
<
i
;
j
++
){
if
(
strcmp
(
list
[
i
],
list
[
j
])
==
0
){
printf
(
"Name %s equals to name %s"
,
list
[
i
],
list
[
j
]);
}
}
}
return
0
;
}
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