Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
krkris
/
Loogikafunktsioon
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
72880b84
authored
3 years ago
by
krkris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Kood.c
parent
08aed4eb
master
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
Kood.c
Kood.c
View file @
72880b84
...
...
@@ -76,8 +76,8 @@ int sisestus(const char tekst[40], char a[16], char b[16], char c[16], char d[16
printf
(
"
\n
K-kaardi kujul:
\n
"
);
printf
(
"%c %c %c %c
\n
"
,
a
[
0
],
a
[
1
],
a
[
3
],
a
[
2
]);
printf
(
"%c %c %c %c
\n
"
,
a
[
4
],
a
[
5
],
a
[
7
],
a
[
6
]);
printf
(
"%c %c %c %c
\n
"
,
a
[
8
],
a
[
9
],
a
[
11
],
a
[
10
]);
printf
(
"%c %c %c %c
\n
"
,
a
[
12
],
a
[
13
],
a
[
15
],
a
[
14
]);
printf
(
"%c %c %c %c
\n
"
,
a
[
8
],
a
[
9
],
a
[
11
],
a
[
10
]);
}
else
{
// Kui kasutaja sisestab mittesobiva märkide arvu, siis programm teeb exit.
...
...
@@ -137,15 +137,15 @@ void info(char a[16], char b[16], char c[16], char d[16]){
f6
=
b
[
3
];
f7
=
b
[
2
];
f8
=
c
[
0
];
f9
=
c
[
1
];
fA
=
c
[
3
];
fB
=
c
[
2
];
f8
=
d
[
0
];
f9
=
d
[
1
];
fA
=
d
[
3
];
fB
=
d
[
2
];
fC
=
d
[
0
];
fD
=
d
[
1
];
fE
=
d
[
3
];
fF
=
d
[
2
];
fC
=
c
[
0
];
fD
=
c
[
1
];
fE
=
c
[
3
];
fF
=
c
[
2
];
}
if
(
f0
==
'1'
){
...
...
This diff is collapsed.
Click to expand it.
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