WAP in C++ to find the maximum or
minimum.
Answers
Answered by
8
Answer:
Program to find Maximum and minimum number in C++
Assume the first element as max/min.
Compare each element with the max/min.
If, the element is greater than max or smaller then min, then, we change the value of max/min respectively.
Then, output the value of max and/or min.
Answered by
1
Answer:
Program to find Maximum and minimum number in C++
Assume the first element as max/min.
Compare each element with the max/min.
If, the element is greater than max or smaller then min, then, we change the value of max/min respectively.
Then, output the value of max and/or min.
Similar questions