I have a program that stores current a low numbers. The Object is to Store the low number every time time one is presented. so say I start the function the first number is the low number. but the trouble im having it once the function is called again it starts over(low number). Is there a way I can keep the function value once the function is called again? or does anyone know a better way of doing this while keeping function in a class?
If you have b = a going on then there is hardly much point checking if a or b are higher or lower than each other. You want a user to enter a number, a, then check if a is < b and if and only if a is less than b do b = a;