Write a JavaScript program to check whether three given integer values are in the range 50..99 (inclusive). Return true if one or more of them are in the said range
- برمجة جافاسكربت java script
- 2021-06-01
- ahmadghneem
الأجوبة
function check_three_nums(x, y, z)
{
return (x >= 50 && x <= 99) || (y >= 50 && y <= 99) || (z >= 50 && z <= 99);
}
console.log(check_three_nums(50, 90, 99));
console.log(check_three_nums(5, 9, 199));
console.log(check_three_nums(65, 89, 199));
console.log(check_three_nums(65, 9, 199));
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال