public class WhileTest05 {
public static void main(String[] args) {
int i = 0;
while (i <= 130) {
System.out.print(i + "\t");
if ((i + 1) % 7 == 0) {
System.out.println();
}
i++;
}
}
}
输出结果: