+ 1
Write a c++ program to find the maximam and minimum.of a set of number?
6 Respostas
0
Declare a variable which hold your minimum and one for your maximum.
Go through each element by using a foreach loop and do following comparisons
If x is lower then your minimum, assign x to your minimum.
If x is bigger then your maximum, assign x to your maximum.
Good Luck
0
To improve the quality of my answers I would like you to give me feedback to my earlier answer
0
i want c++ code.
0
I do not like giving complete code solutions but may I can give you a solution for a similar case. So you can modify it?
0
ok...post the similar program.
thank you.
0
Here is a similar problem.
https://code.sololearn.com/cYGB1UhnmPu1/?ref=app