I have a Homework

Homework

http://o1311.hizliresim.com/1h/m/upgg1.png


Statement:


My teacher gave an homework.but ı can not. I need help
Unfortunately, you're going to have to try. We have a pretty strict policy of not doing homework for you. However we would be happy to answer any specific question you have about the assignment, or point you in the right direction if you show us you've actually put out the effort to at least try and write the code.
closed account (S6k9GNh0)
Actually, I'm not sure I understand the question in the homework. The example shows an input number of 16... but the exploratory answer has 15 despite it not being positive. But then fails to print 12 despite having 1, 2, 3, 4, 6 and 12 as divisors.
Last edited on
@computerquip
I think it means exactly 4 divisors.
12 also has 6 as a divisor, which would mean it has > 4.
But 15 has 1, 3, 5, and 15 as divisors, which fits the criteria.
closed account (S6k9GNh0)
Right but it's odd. The question asks for positive numbers.
Positive numbers, meaning greater than 0, not negative.

Does positive also mean "even" in your dialect? I don't know where you're from :p
Last edited on
closed account (S6k9GNh0)
Herm, no. I suppose a long day at work... never mind then.
Topic archived. No new replies allowed.