int discriminant(int a, int b, int c){
      
        int d = (b*b) - (4*a*c);
        
        return d
      }

      Java language logo
      Discriminant of quadratic equation

      Java Recipes

      The discriminant function returns the magnitude of the difference between two integers a and b, where a is the smaller integer and b is the larger integer.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.