Write a JavaScript program to find the smallest round number that is not less than a given value
- برمجة جافاسكربت java script
- برمجة
- 2021-06-02
- ahmadghneem
الأجوبة
function nearest_round_number(num) {
while (num % 10) {
num++;
}
return num;
}
console.log(nearest_round_number(56));
console.log(nearest_round_number(592));
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال