걍가영 2024. 10. 15. 19:38

 

// javascript
const solution = (num1, num2) => {
    return Math.round(num1 % num2);
}
// typescript
const solution = (num1:number, num2:number):number => {
    return Math.round(num1 % num2);
}