minor
This commit is contained in:
parent
3e7640847b
commit
f72405a263
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ let x = prompt("x?", '');
|
||||||
let n = prompt("n?", '');
|
let n = prompt("n?", '');
|
||||||
|
|
||||||
if (n < 1) {
|
if (n < 1) {
|
||||||
alert(`Степень ${n} не поддерживается, только целая, большая 0`);
|
alert(`Power ${n} is not supported, use a positive integer`);
|
||||||
} else {
|
} else {
|
||||||
alert( pow(x, n) );
|
alert( pow(x, n) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue