JAVA第二次作业
1.
public class mer { public static void main(String[] args) { int a=5; int b=6; int c; c=a; a=b; b=c; System.out.println("a="+a+" b="+b); } }
2.
public class mer { public static void main(String[] args) { int a=927; int ge=a%10; int shi=a/10%10; int bai=a/100; int sum=ge+shi+bai; System.out.println(sum); } }
3.
public class mer { public static void main(String[] args) { int f=50; int c=(f-32)*5/9; System.out.println(c); } }
4.
public class mer { public static void main(String[] args) { char a='M'; char b='M'+32; System.out.println(b); } }