Math calculators in JavaScript

Задание 1

Write a script that will find the roots of a quadratic equation. To do this, make 3 inputs into which the equation coefficients will be entered.

Задание 2

Given 3 inputs. Numbers are entered into them. Check that these numbers are a Pythagorean triple: the square of the largest number must be equal to the sum of the squares of the other two.

Задание 3

Given an input and a button. A number is entered into the input. By clicking on the button, display a list of divisors of this number.

Задание 4

Given 2 inputs and a button. Numbers are entered into the inputs. By clicking on the button, display a list of common divisors of these two numbers.

Задание 5

Given 2 inputs and a button. Numbers are entered into the inputs. By pressing the button print the greatest common divisor of these two numbers.

Задание 6

Given 2 inputs and a button. Numbers are entered into the inputs. By pressing the button, print the smallest number that is divisible by both the first and second of the entered numbers.