In our studio we design high quality polygonal 3d models for CNC machines or 3d printers according to your preferences.
Vendor: 3d-260666
Category: PATTERN
Reminder!
Order delivery time is 5-7 working days after payment
The link is sent to your email or messenger
Polypogon import java.util.Scanner; public class Polygon { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the number of sides in the polygon:"); int n = sc.nextInt(); double side = sc.nextDouble(); double area = (n * Math.pow(side, 2)) / (4 * Math.tan(Math.PI / n)); System.out.println("The area of the polygon is: " + area); } }
for CNC and 3D printers.