1
0
forked from kalmar/DALGLI0
DALGLI0/zad1/Main.java

19 lines
463 B
Java
Raw Permalink Normal View History

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());
}
}