Hunt 2: Blocks
Every block has an end
IFneedsENDIF.FORneedsNEXT.WHILEneedsENDWHILE.- Some bugs give no error: the program runs, but does the wrong thing. Run it and compare.
| Word | Meaning |
|---|---|
| block | the lines between a start word and its end word |
| indent | spaces that show which lines are inside a block |
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Your pet is stuck! This program should output Purr. Find the bug and fix it.
اضغط تشغيل لرؤية المخرجات هنا.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Your pet is stuck! This program should output Purr. Find the bug and fix it.
اضغط تشغيل لرؤية المخرجات هنا.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Your pet is stuck! This program should output jump / jump / jump. Find the bug and fix it.
اضغط تشغيل لرؤية المخرجات هنا.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Your pet is stuck! This program should output 3 / 2 / 1. Find the bug and fix it.
اضغط تشغيل لرؤية المخرجات هنا.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Your pet is stuck! This program should output 12. Find the bug and fix it.
اضغط تشغيل لرؤية المخرجات هنا.