package com.sise; import java.util.Random; import java.util.Scanner; public class Test2 { public static void main(String[] args) { for (int i = 1; i <= 100; i++) { if (i == 70) { System.out.println("过"); } else if (i % 10 == 0) { System.out.println(i); } else if (i == 100) { System.out.println(i); } else if (i % 7 == 0 || i % 10 == 7 || i / 10 == 7) { System.out.print("过、"); } else { System.out.print(i + "、"); } } } }
逢7过
最新推荐文章于 2024-11-03 11:01:20 发布