package Hhhhh;

import java.util.Scanner;

public class lll {

        public static void main(String[] args){
            try{
                int a,b;
                Scanner  sc=new Scanner(System.in);
                a=sc.nextInt();
                b=sc.nextInt();
                System.out.println((a/b));
                }catch(Exception e){
                    //e.printStackTrace();
                    System.out.println("分母为零不可除");
                }
            finally{
                   System.out.println("OK");
                       
                    }
             
        }
}
package Hhhhh;
import java.util.*;
public class lrrr {
   
 public static void main(String[] args){
 
  try{
 
  double r,s;
  final double PI=3.14;
  Scanner sc=new Scanner(System.in);
  r=sc.nextDouble();
  s=r*PI*r;
  System.out.println(s);
  }catch(Exception e){
   System.out.println("输入类型错误");
  }
 }
}

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。