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()

in WORLD OF XPILAR3 years ago

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.

Sort:  

thanks for your valuable comment:)
This program is only for new programmer in C++

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.027
BTC 59239.80
ETH 2662.03
USDT 1.00
SBD 2.48