Computer Science, asked by Daddykokkie, 1 month ago

WAP in C++ to find the maximum or

minimum.​

Answers

Answered by mk5813755
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 kookie2787
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