0

How find max between a lot of numbers? With for/while loop.

in c++ language

12th Aug 2018, 6:13 AM
Mostafa
3 Respostas
- 1
seems pretty obvious...
12th Aug 2018, 6:34 AM
VcC
VcC - avatar
+ 6
Mostafa , this is question answer section.. please don't expect people to code for you entirely... do share your code and let us know where you are confused or stuck... doing it yourself will help you to put your learning into implementation
12th Aug 2018, 6:14 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 3
Just the bare-bones to understand the idea cin >> number; max = number; while ( 1 ) if ( cin >> number ) max = number > max ? number : max; else break;
12th Aug 2018, 7:19 AM
Babak
Babak - avatar