View Single Post
Old Feb 13th, 2005, 9:03 PM   #1
mapster123
Newbie
 
Join Date: Feb 2005
Posts: 2
Rep Power: 0 mapster123 is on a distinguished road
Help with some algorithm questions

Hello everyone,

I have two questions that need assistance with

1. Create an algorithm to input a series of positive and negative numbers (integers) and to display the highest and lowest values found. The input process is to end with an input of 999 and this value is not to be included in the calculations.

Eg. an input series of 6,100,-35,47,0,203,-16,999

would produce a display of Max 203 Min -35

2. Create an algorithm to accept a series of numbers whose values fall within range 1 to 5 inclusive. Input is to end when an input value of 999 is encountered - which is not to be included in the calculations. Any value outside the range of allowed values is to be ignored.
mapster123 is offline   Reply With Quote