Webastor - Programming Tips and Tricks
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
SMF - Just Installed!
Home
Help
Search
Calendar
Login
Register
Webastor - Programming Tips and Tricks
»
Programming language
»
C++
»
How can I keep the biggest number in the list with c++?
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: How can I keep the biggest number in the list with c++? (Read 186 times)
Aston
1
Newbie
Posts: 0
Karma: +0/-0
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
»
Logged
Luis
1
Newbie
Posts: 0
Karma: +0/-0
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.
Logged
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Webastor - Programming Tips and Tricks
»
Programming language
»
C++
»
How can I keep the biggest number in the list with c++?
Sitemap
1
2
3
4
5
6
7
8
9