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