2018-03-14 14:51:38 +00:00
|
|
|
import java.lang.Integer;
|
2018-05-28 14:07:29 +00:00
|
|
|
import java.lang.Long;
|
2018-08-01 12:03:23 +00:00
|
|
|
import java.lang.Double;
|
2018-03-14 14:51:38 +00:00
|
|
|
|
|
|
|
public class While {
|
2024-03-14 13:37:55 +00:00
|
|
|
public m(x) {
|
2018-03-14 14:51:38 +00:00
|
|
|
while(x < 2) {
|
|
|
|
x = x+1;
|
|
|
|
}
|
|
|
|
return x;
|
|
|
|
}
|
2024-05-21 10:14:12 +00:00
|
|
|
|
|
|
|
public m2() {
|
|
|
|
int i = 0;
|
|
|
|
do {
|
|
|
|
++i;
|
|
|
|
} while(i < 10);
|
|
|
|
|
|
|
|
return i;
|
|
|
|
}
|
2018-03-14 14:51:38 +00:00
|
|
|
}
|