moving all labs to old dir
This commit is contained in:
8
old/lectures/lec5/p1/task3.js
Normal file
8
old/lectures/lec5/p1/task3.js
Normal file
@@ -0,0 +1,8 @@
|
||||
let p = prompt("Введите значение переменной p:");
|
||||
|
||||
if (isNaN(parseFloat(p)) || !isFinite(Number(p))) {
|
||||
alert("Ошибка: введено не число.");
|
||||
} else {
|
||||
p = Number(p) + 1;
|
||||
alert(`Увеличенное значение переменной p: ${p}`);
|
||||
}
|
||||
Reference in New Issue
Block a user