#least occuring and most occuring integer

1 messages · Page 1 of 1 (latest)

icy oxide
#

we have an assignment to make a program that accepts a series of int ranging from 0-99. this is the result after i run it.
The result should be both 88 but i don't understand why it shows 11 and i have no idea how should I fix this.

river spearBOT
#

This post has been reserved for your question.

Hey @icy oxide! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

crisp mason
#

it could be 22 55 and 66 also not only 88

terse gyro
#

@icy oxide Check the seqeunce of numbers you are giving it. It seems like you only have each number in there once, making each number tied for both first and last for number of occurrences

icy oxide
river spearBOT
terse gyro
#

alrightly, glad you got it figured out 👍