projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a803d
)
rem0x10001 test file added
author
cacao
<none@none>
Wed, 7 Oct 1998 22:07:18 +0000
(22:07 +0000)
committer
cacao
<none@none>
Wed, 7 Oct 1998 22:07:18 +0000
(22:07 +0000)
tests/remtest.java
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/remtest.java
b/tests/remtest.java
new file mode 100644
(file)
index 0000000..
b2190ce
--- /dev/null
+++ b/
tests/remtest.java
@@ -0,0
+1,24
@@
+
+// Zahlen summieren, Java Version
+
+public class remtest {
+
+
+ static public int rem(int i, int j) {
+ return i % j;
+ }
+
+
+ static public void main(String [] arg) {
+
+ int i;
+
+ for (i = -1; i != 0; i--) {
+ if ((i % 0x10001) != rem(i, 0x10001)) {
+ System.out.println ("Error: " + i);
+ }
+ }
+
+ System.out.println ("OK");
+ }
+ }