Author Topic: How can I keep the biggest number in the list with c++?  (Read 305 times)

Offline Aston

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
How can I keep the biggest number in the list with c++?
« 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.
« Last Edit: April 30, 2017, 10:27:22 AM by Sofyene »



Offline Luis

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Re: The biggest number in the list with
« Reply #1 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.



 

Sitemap 1 2 3 4 5 6 7 8 9