projects
/
mate.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tests: add class with {do-,}while keyword
[mate.git]
/
tests
/
While.java
1
public class While {
2
public static int f(int a, int b) {
3
do {
4
a += b;
5
b--;
6
} while (b > 0);
7
return a;
8
}
9
10
public static int g(int a, int b) {
11
while (b > 0) {
12
a += b;
13
b--;
14
}
15
return a;
16
}
17
}