projects
/
mate.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
929b56b14c22d3e68bc4351fdac06cde2096df05
[mate.git]
/
tests
/
While.java
1
package tests;
2
3
public class While {
4
public static int f(int a, int b) {
5
do {
6
a += b;
7
b--;
8
} while (b > 0);
9
return a;
10
}
11
12
public static int g(int a, int b) {
13
while (b > 0) {
14
a += b;
15
b--;
16
}
17
return a;
18
}
19
}