View Single Post
Old 02-03-2004, 05:34 PM   #1
Nuclear Krusader
Mondsreitersmann
 
Nuclear Krusader's Avatar
 
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
Pissed 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.
Nuclear Krusader is offline   Reply With Quote