I have a list of numbers, say;
1, 2, 3, 4, 5

and i want to find the next biggest number to 3, obv the answer would be 4. ive tried every book i know, and MSDN, i cant find anything, is this not possible?

Thanks for you time.

Recommended Answers

All 2 Replies

post your code that u have tried...

Well, heres one way. Your numbers must be in an array. Sort the array desending and pick the number above your chosen number,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.