I need help with arrays! :/
Wo1ves1n0 (5)

So I've got a code where the player inputs the amount of numbers for the list then will have to input the numbers for list they decided it to be. However, i manage to get the sum to add the total. It's just finding the lowest number to the largest number And I can't find anything about it.

You are viewing a single comment. View All
Answered by themaka (178) [earned 5 cycles]
View Answer
ArchieMaclean (618)

What language are you using? Do you have a link to a repl?

ArchieMaclean (618)

@Wo1ves1n0 I don't know C++, but does this stackoverflow question help?

Wo1ves1n0 (5)

@ArchieMaclean Not really. But thank you! However, I'm trying to look for a code where I can find the lowest and the highest integer that the user has inserted in the array themselves, not the ones that only you create. If that makes sense.

NEILSENBENJAMIN (25)

@Wo1ves1n0 I don't know C++, but I could suggest that you constantly update an integer minimum and integer maximum as you get the numbers from the user. (Also, you don't really even need an array to do this, just do everything in real time.)