寒假实训第二天
1.运算符,和一些简单的代码
2.if else 语句
3.for循环,while循环,do-while循环语句
(1)for循环
(2)for语句嵌套,以九九乘法表为例
(3)while循环
(4)do-while循环
public class DoWhileDemo { public static void main(String[] args) { int i = 1; do { System.out.print(i + " "); i++; }while (i <= 10); } }
4.switch 语句
5.今日作业
我用 if-else 语句实现的