import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
public class TwiceWork8 {
public static void main(String[] args) {
double a=0.00008;
for(double i=0;i<100;i++){
a=2*a;
if(a>=8848.43){
//珠穆朗玛峰高8844.43米,不是8848.13
System.out.println(i);
break;
}
}
}
}
public class TwiceWork9 {
public static void main(String[] args) {
int b=4;
for(int i=1000;i>=1000&&i<=2000;i++){
if(i%b==0){
System.out.println(i);
}
}
}}
3,`public class TwiceWork10 {
public static void main(String[] args) {
double sum=0,a=1,b=1,c;
int i;
for (i = 1; i <= 30; i++) {
sum=sum+(a/b);
c=b;
b=b+a;
a=c;
}
System.out.println(sum);
}
}`