C/C++ Programms

No Comments

to find the biggest and smallest of three numbers

Here is an optimized program to find the largest and smallest among three entered numbers. Logic : The entered three numbers N1, N2, N3 are compared in such an order, where the first comparison checks if  N1  largest. If so, prints it out and exists; if not so, it omits N1 from further comparison and […]