Nesbitt 's Inequality | C # code to verify Nesbitt 's Inequality ; 3 parts of the inequality sum ; Driver code
using System ; class GFG { static bool isValidNesbitt ( double a , double b , double c ) { double A = a / ( b + c ) ; double B = b / ( a + c ) ; double C = c / ( a + b ) ; double inequality = A + B + C ; return ( inequality >= 1.5 ) ; } static public void Main ( ) { double a = 1.0 , b = 2.0 , c = 3.0 ; if ( isValidNesbitt ( a , b , c ) == true ) { Console . Write ( " Nesbitt ' s ▁ inequality " + " ▁ satisfied ▁ " ) ; Console . WriteLine ( " for ▁ real ▁ numbers ▁ " + a + " , ▁ " + b + " , ▁ " + c ) ; } else Console . WriteLine ( " Nesbitts ▁ inequality " + " ▁ not ▁ satisfied " ) ; } }