public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 for (int i = 1; i <= 100; i++) { System.out.print(i + " "); } }}