public static void main(String[] args) 
	{
		int arrayx;
		int arrayy;
		int y=0;
		Scanner sc = new Scanner(System.in);
		
		System.out.println("Number of vars = ");
		if (sc.hasNextInt())
		{
			y = sc.nextInt();
		}
		arrayy = y;
		arrayx = y+1;
		double[][] term = new double[arrayx][arrayy];
		double r = 0;
		for(int i = 0; i < arrayy; i++)
		{
			r = 0;
			System.out.print("Row number:"+ i + "(" + arrayx + " numbers):");
			for(int j = 0; j < arrayx;j++)
			{
				if (sc.hasNextDouble())
				{
					r = sc.nextDouble();
				}
				term[j][i] = r;
			}
		}
		Calculator calc = new Calculator(term);
		
		System.out.println("Array = " );
		for(int i = 0; i < arrayy; i++)
		{
			for(int j = 0; j < arrayx;j++)
			{
				if(j == arrayx-1)
					System.out.print(calc.getSolution(j)+"	");
				else
					System.out.print(calc.getValue(i, j)+"	");
			}
			System.out.println();
		}
		System.out.println("Vars = " + calc.getNumberOfUnknown());
	}