Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IPDSnelting
mjtest-tests
Commits
753be286
Commit
753be286
authored
Jan 17, 2022
by
ucifm
Committed by
Schaback
Jan 24, 2022
Browse files
added div/mod abi test
parent
321ffb18
Changes
1
Hide whitespace changes
Inline
Side-by-side
exec/ModuloTest.java
0 → 100644
View file @
753be286
class
ModuloTest
{
public
static
void
main
(
String
[]
args
)
{
new
ModuloTest
().
q
(
61
,-
71
,
81
,-
91
);
}
public
void
q
(
int
a
,
int
b
,
int
c
,
int
d
)
{
System
.
out
.
println
(
a
%
1
);
System
.
out
.
println
(
b
%
2
);
System
.
out
.
println
(
c
%
4
);
System
.
out
.
println
(
d
%
8
);
System
.
out
.
println
(
a
%(-
1
));
System
.
out
.
println
(
b
%(-
2
));
System
.
out
.
println
(
c
%(-
4
));
System
.
out
.
println
(
d
%(-
8
));
System
.
out
.
println
(
c
%(-
32
));
System
.
out
.
println
(
a
%
2
+
c
%(-
4
)%
2
+
d
%
2
);
System
.
out
.
println
(
d
%
53
%
32
%
8
);
}
}
Write
Preview
Supports
Markdown
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