Ask your own question, for FREE!
Computer Science 8 Online
kekeman:

Help: https://snipboard.io/rzH3bX.jpg

kekeman:

@ultrilliam Hey do you think you could help me

Vocaloid:

Major hint: this person only wants positive numbers to be included. However, with the way it’s set up it will include 0 if a happens to be 0. How do we change that?

kekeman:

prod should equal 0?

kekeman:

Because just like 6 and 2, 0 is also a positive number

kekeman:

@vocaloid wrote:
Major hint: this person only wants positive numbers to be included. However, with the way it’s set up it will include 0 if a happens to be 0. How do we change that?
....

Vocaloid:

In order for a number to be positive it must be *greater* than 0 Therefore, the a>=0 must be changed to a > 0

kekeman:

Ohhhh fr okay so on line 4 a>=0 needs to be changed to a>0

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!