wklejamy.pl website for sale. You are interested in. Please contact. wklejamy@gmail.com
Click to buy coffeUntitled
Guest 368 16th Sep, 2022
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
let a, b, c;
while (isNaN(a) || a == "" || a.includes(' ')) {
a = prompt("Podaj liczbę A: ");
}
while (isNaN(b) || b == "" || b.includes(' ')) {
b = prompt("Podaj liczbę B: ");
}
while (isNaN(c) || c == "" || c.includes(' ')) {
c = prompt("Podaj liczbę C: ");
}
document.write("Liczba A: " + a + "<br>");
document.write("Liczba B: " + b + "<br>");
document.write("Liczba C: " + c + "<br>");
const delta = (b * b) - (4 * a *c);
if (delta > 0) {
const pierwiastek = Math.sqrt(delta);
const x1 = (-b-pierwiastek)/(2*a);
const x2 = (-b+pierwiastek)/(2*a);
document.write("Delta dodatnia, mamy dwa rozwiązania<br>");
document.write("X1 = " + x1 + "<br>");
document.write("X2 = " + x2 + "<br>");
} else if (delta === 0) {
const pierwiastek = Math.sqrt(delta);
const x = -b/(2*a);
document.write("Delta zerowa, mamy jedno rozwiązanie<br>");
document.write("X = " + x + "<br>");
} else {
document.write("Delta ujemna, brak rozwiązań!");
}
</script>
</body>
</html>
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Wanted to get the drift what your opinion is on this point
Xeora | 11 | 10 hours ago
- psycho
Markup | 14 | 13 hours ago
- Untitled
Markup | 25 | 19 hours ago
- Untitled
Markup | 14 | 22 hours ago
- Выгодное предложение для каждого человека
Q (kdb+ database) | 12 | 1 day ago
- Untitled
Markup | 56 | 2 days ago
- гадалка в пензе подскажите - гадалки пенза
Arduino | 22 | 2 days ago