Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about #4 #1

Open
sylviakinosian opened this issue Oct 27, 2016 · 2 comments
Open

question about #4 #1

sylviakinosian opened this issue Oct 27, 2016 · 2 comments

Comments

@sylviakinosian
Copy link
Collaborator

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

@willpearse
Copy link
Member

That's exactly what I would like you to do. You'll find the print function will help you do this.

If you want help with the exercises, remember you can schedule a one-on-one meeting with me if you email me (will.pearse@usu.edu).

@Wolflab
Copy link

Wolflab commented Oct 29, 2016

Sylvia: I think Jenessa had an interesting solution to Q 4, although I haven't looked yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants