Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / who can give a function to get the minimum number? (dbc)

Author
Message
Olympic
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 22nd Aug 2004 22:18
if there is an array int num(30), how to get the min value of this array? also I need to know the position of this number!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd Aug 2004 22:37
hmm heres some stupid code



I think tho you may need to look at a sorting method.
perhaps a bubble sort is more what you require.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
scout
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location:
Posted: 23rd Aug 2004 00:27
hi Olympic,

i think that is what ur lookin for:



greets
scout
Olympic
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 23rd Aug 2004 07:44
got it!
cheers mate!

Login to post a reply

Server time is: 2024-11-27 07:53:24
Your offset time is: 2024-11-27 07:53:24