Hunt 4: Logic bugs
이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
English
Bugs with no error
- The hardest bugs give no message. The program runs, but the answer is wrong.
- Test with the expected output: what should come out? What comes out?
- Check the first value and the last value of every loop.
| Word | Meaning |
|---|---|
| logic bug | the code runs, but does the wrong thing |
| off by one | a loop that runs one time too many or too few |
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Your pet is stuck! This program should output 1 / 2 / 3 / 4 / 5. Find the bug and fix it.
출력을 보려면 '실행'을 클릭하세요.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Your pet is stuck! This program should output 3 / 2 / 1 / Go!. Find the bug and fix it.
출력을 보려면 '실행'을 클릭하세요.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Your pet is stuck! This program should output Ana. Find the bug and fix it.
출력을 보려면 '실행'을 클릭하세요.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
Your pet is stuck! This program should output Result: 10. Find the bug and fix it.
출력을 보려면 '실행'을 클릭하세요.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
Your pet is stuck! This program should output -2. Find the bug and fix it.
출력을 보려면 '실행'을 클릭하세요.