java to python conversion

Solutions on MaxInterview for java to python conversion by the best coders in the world

showing results for - "java to python conversion"
Eleonora
27 Jan 2020
1 public static double area(int n, double side){
2      double area = ( n*side*side)/4* Math.tan(3.14/n);
3      return area;
4  }
5    public static void main(String[] args) {
6      Scanner scan = new Scanner (System.in);
7        System.out.println("Enter n and side");
8      int n = scan.nextInt();
9      double side = scan.nextDouble();
10        System.out.println(area(n, side));
11    
12}
13}