You are viewing a single comment's thread from:
RE: Coding Practice: Write a program in C++ to find out maximum and minimum number from given integer numbers using conditional statement if()
Generalize the problem. The way you did it, it is feasable for very few numbers: I'd say 2 as top limit (where you can use a max(a, b) function or macro), so you are beyond my threshold by 2 already. Consider that in real life you won't ever have this kind of problem, and if you do, you are not going to make a sequence of ifs.
thanks for your valuable comment:)
This program is only for new programmer in C++