First Multiple of 7
JavaScript
10 pts
First Multiple of 7
Find the first number from 50 to 100 that is divisible by 7. Loop from 50 upwards. When n % 7 === 0, store n in found and stop the loop with break. Then print:
Found: 56
Do not type 56 yourself.
Checklist
- Store the first multiple of 7 in
found. - Use
%andbreak, no typed answer. - Print the result.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
