public class Dome {
public static void main (String[] args){
int sum = 0;
for (int i = 1; i<=100;i++){
if ((sum%2)!=0){
sum += i;
}
}System.out.println("100以内的奇数之和:" + sum)
}
}