forked from kalmar/DALGLI0
19 lines
463 B
Java
19 lines
463 B
Java
|
import java.util.Scanner;
|
||
|
|
||
|
public class Main {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
int n;
|
||
|
if(args.length == 0) {
|
||
|
System.out.println("Proszę podać n ");
|
||
|
Scanner scan = new Scanner(System.in);
|
||
|
n = scan.nextInt();
|
||
|
}
|
||
|
else{
|
||
|
n = Integer.parseInt(args[0]);
|
||
|
}
|
||
|
Ring ring = new Ring(n);
|
||
|
System.out.println(ring.findRingDetails());
|
||
|
}
|
||
|
}
|