i have a homework assignment asking me to pick the highest and lowest number out of a group of 4 numbers? How would i set that up?
drtucker
0
Newbie Poster
Recommended Answers
Jump to Postyou need two variable -- highest and lowest. Initialize them to be the value of the first array element. Next code a loop to count from 1 to the number of items in the array, then test each array element against those two variables, and change the variable value to …
All 2 Replies
Reply to this topic
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.