Flowcharts from hell
Howdy fellows,
Can you give me a hand with these insufferable flowcharts for tomorrow's assignment?
The problem is this one:
Reads in a list of positive numbers (use -1 to represent the end of the list) and prints out the largest and the second largest numbers. (Assume that the list contains at least two numbers.)
This is what I have so far. But I cannot find a way to read in the second number, compare it and print it out as the second largest.
Any ideas?
TIA
__________________
Darum still, füg' ich mich, wie Gott es will. Nun, so will ich wacker streiten, und sollt' ich den Tod erleiden, stirbt ein braver Reitersmann.
|