Поделитесь своими знаниями, ответьте на вопрос:
нужен ответ. Задача 1. Найти площадь прямоугольникаa = int(input()) #Введем сторону прямоуг-ка ab = int(input()) #Введем сторону прямоуг-ка bprint(a*b) #Выведем площадь прямоуг-каЗадача 2. Найти сумму трех введенных чиселa = int(input())b = int(input())c = int(input())print(a+b+c)
для твоего образца.
function cat(name, age) {
this.excuses = ['пнх', 'схб' /*здесь можно написать отмазы ленивого кота*/];
this.name = name;
this.age = age;
this.прыжков = 0;
}
cat.prototype = {
sayhello: function () { console.log("hello! my name is " + this.name); },
jump: function (height) {
if (this.прыжков > 3) console.log(this.excuses[math.random() * this.excuses.length | 0]);
else console.log(height > this.age ? "nonono i'm too young. bro! " : "jump");
this.прыжков++;
}
};