How can I keep the biggest number in the list with c++?

Started by Edmond, November 17, 2016, 07:04:54 PM

Previous topic - Next topic

Aston

Hello everyone, I would like to ask you a particular question, how can i keep the biggest number in the list with c++? Please help quickly.

Luis

Inside the while loop, if number is greater than largest, then set largest = number.

Then at the end you can output largest.