package main;

import java.util.Scanner;

import exception.TriangleException;

import triangle.Triangle;

public class MainTriangle {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] values = new String[3];
		for (int i = 0; i < 3; i++) {
			System.out.println("Entrez une valeur pour le côté n°" + (i+1));
			values[i] = scanner.nextLine();
		}
		scanner.close();
		try {
			System.out.println(new Triangle(Double.parseDouble(values[0]),Double.parseDouble(values[1]), Double.parseDouble(values[2])));
		} catch (NumberFormatException | TriangleException e) {
			e.printStackTrace();
		}
	}
	
}
