public static void main(String[] args) {

// TODO Auto-generated method stub

           int r=2,s;

           s=(int)(r*r*3.14);

           System.out.println(s);

}

public static void main(String[] args) {

// TODO Auto-generated method stub

           double hua=50,she;

           she=(hua-32)*5/9;

           System.out.println(she);

}

public static void main(String[] args) {

// TODO Auto-generated method stub

           double hua=50,she;

           she=(hua-32)*5/9;

           System.out.println(she);

}

public static void main(String[] args) {

// TODO Auto-generated method stub

           int a=5,b=8,c;

           c=a;

           a=b;

           b=c;

           System.out.println("a是"+a+"b是"+b);

}

public static void main(String[] args) {

// TODO Auto-generated method stub

           int a=10086,b;

           

           b=a/100*100;

           System.out.println(b);

}

public static void main(String[] args) {

// TODO Auto-generated method stub

           int a=888,b;

           b=(a%10)+(a/10%10)+(a/100%10);

           System.out.println(b);

}

public static void main(String[] args) {

        // TODO Auto-generated method stub

char AA='A';

char aa;

aa=(char) (AA+32);

System.out.println("A转换为小写字母为:"+aa);

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted on 2021-03-12 10:00  计算机1901金百乙  阅读(18)  评论(0编辑  收藏  举报