会写while语句了,啦啦啦……
public class he2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int i=0;
int num=0;
while(i<100){
i++;
if(i%2==0)
continue;
else
num=num+i;
System.out.println(num);
}
}
}