定义变量的格式 数据类型 变量名 = 值; 定义一个年龄age变量,值为18 int age = 18; 定义一个字符串,姓名为name,值为张三 String name = "张三"; 定义一个布尔类型,是否抽烟 bool isSmoke = true; 输出内容 Console