HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
프론트엔드 스쿨 교안(1기)
/
📝
(코테준비) 자료구조 및 알고리즘
/
☝
JS 100제 - 1권
/
🔥
문제20
/
✔️
답안
✔️

답안

const n = prompt('수를 입력하세요.').split(' '); const result = Math.floor(parseInt(n[0], 10) / parseInt(n[1], 10)); const left = parseInt(n[0], 10) % parseInt(n[1], 10); console.log(result, left);