Answers for "java to python conversion"

0

java to python conversion

public static double area(int n, double side){
      double area = ( n*side*side)/4* Math.tan(3.14/n);
      return area;
  }
    public static void main(String[] args) {
      Scanner scan = new Scanner (System.in);
        System.out.println("Enter n and side");
      int n = scan.nextInt();
      double side = scan.nextDouble();
        System.out.println(area(n, side));
    
}
}
Posted by: Guest on May-29-2021

Code answers related to "java to python conversion"

Python Answers by Framework

Browse Popular Code Answers by Language