Fix error in pow task solution
This commit is contained in:
parent
62a0bb597f
commit
45ce771ea8
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function pow(x, n) {
|
|||
let x = prompt("x?", '');
|
||||
let n = prompt("n?", '');
|
||||
|
||||
if (n <= 1) {
|
||||
if (n < 1) {
|
||||
alert(`Power ${n} is not supported,
|
||||
use an integer greater than 0`);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue