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)
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017
- DHT12 Interfacing with Raspberry Pi using Pi4J - June 19, 2017
- Send data using MQTT from Raspberry Pi with JAVA - June 12, 2017