You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a loop that prints out the numbers from 1 to 20, printing “Good: NUMBER” if the number is
divisible by five and “Job: NUMBER” if then number is prime, and nothing otherwise.
Do you want us to print out 1-20 with like Job: 1, Job: 2, Job: 3, (nothing for 4), Good: 5?
I guess I'm just having trouble picturing what the output should be, and therefore how to get there.
Thanks,
Sylvia
The text was updated successfully, but these errors were encountered:
Hi Will,
I had a question about the output for #4:
Write a loop that prints out the numbers from 1 to 20, printing “Good: NUMBER” if the number is
divisible by five and “Job: NUMBER” if then number is prime, and nothing otherwise.
Do you want us to print out 1-20 with like Job: 1, Job: 2, Job: 3, (nothing for 4), Good: 5?
I guess I'm just having trouble picturing what the output should be, and therefore how to get there.
Thanks,
Sylvia
The text was updated successfully, but these errors were encountered: