public class Test8 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int count =0;
for (int i = 0; i < 100; i++) {
if(i % 2 !=0) {
System.out.print(i + "\t");
count++;
if(count %5 ==0) {
System.out.println();
}
}
}
}
}
输出100以内的奇数
最新推荐文章于 2022-10-13 16:21:53 发布