首页 > 编程知识 正文

输出100以内的奇数python,输出100到200之间的奇数

时间:2023-05-03 16:58:10 阅读:276836 作者:1438

public class Test8 {public static void main(String兴奋的便当 args) {// TODO Auto-generated method stubint 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();}}}}}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。