Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задача порівняння чисел
- function numbersSum (a, b, c) {
- if ((a + b + c) > 0 && (a + b + c) < 100) {
- return 1;
- } else if (a == b == c) {
- return -1;
- } else {
- return Math.max(a, b, c);
- }
- }
- console.log(numbersSum(90,5,2))
Advertisement
Add Comment
Please, Sign In to add comment