Java作业(二)—— 数据类型
-
程序阅读题,看看输出什么?
public class Homework01{ public static void main(String[] args){ int n1 = 13; int n2 = 17; int n3 = n1 + n2; System.out.println("n3 = " + n3); int n4 = 38; int n5 = n4 - n3; System.out.println("n5 = " + n5); } }
-
使用char类型,分别保存\n \t \r \\ 1 2 3等字符,并打印输出
public class Homework01{