Check out example codes for "Program to find number of solutions in Quadratic Equation c#". It will help you in understanding the concepts better.

Code Example 1

static void checkSolution(int a, int b, int c) 
    { 
  
        // If the expression is greater than 0,  
        // then 2 solutions 
        if (((b * b) - (4 * a * c)) > 0) 
            System.out.println("2 solutions"); 
  
        // If the expression is equal 0, then 2 solutions 
        else if (((b * b) - (4 * a * c)) == 0) 
            System.out.println("1 solution"); 
  
        // Else no solutions 
        else
            System.out.println("No solutions"); 
    }

Learn ReactJs, React Native from akashmittal.com