function isOddNumber(num) {
let newNum = Math.abs(num)
let i = 0
while (i * 2 <= newNum) {
i++
}
return i * 2 - newNum === 1;
}
function oddNumberToString(num) {
let str = ''
let i = 0
while (i < num * 2) {
i++
if (i % 2 === 1) {
str += i
}
}
return str
}
function getFactorial(num) {
let result = 1
for (let i = 1; i <= num; i++) {
result *= i
}
return result
}