Webastor - Programming Tips and Tricks

Programming language => C++ => Topic started by: Aston on November 17, 2016, 07:04:54 PM

Title: How can I keep the biggest number in the list with c++?
Post by: Aston on November 17, 2016, 07:04:54 PM
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.
Title: Re: The biggest number in the list with
Post by: Luis on April 30, 2017, 10:29:28 AM
Inside the while loop, if number is greater than largest, then set largest = number.

Then at the end you can output largest.