This program finds the bigger and the smaller between two numbers. In this program no comparission operator is used. neither any switch case or if else statement. Math.h library is included because it contains the abs() and sqrt() which are used in the computation of the max and min.
printf("Enter The value of A: ");
printf("Enter The value of B: ");
printf("The Max is: %d, and the Min is: %d",max,min);
This program finds the maximum and minimum values by computing respective expression and stores in max and min variables.
Latest posts by Bikash Panda (see all)
- Firmata protocol with Raspberry Pi and Arduino - September 13, 2017
- IOT:Power outlet controlled from internet using WeMOS - August 9, 2017
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017