954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how do i return a high and low integer in a program

I need to write a program that will enter integers until 0 is entered. then the program needs to return the highest integer and the lowest integer. How do I return those integers.

gpleonar
Newbie Poster
2 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

Read a number, set both the min and max to that number. For each new number you read, if it's larger than the max, assign it to max and if it's smaller than the min, assign it to min.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You