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

      Cpp language logoDiscriminant of quadratic equation

      Cpp recipes

      In the discriminant() function, the first two arguments are the integers a and b. The second two arguments are the integers c and d. The function calculates the integer d that is equal to the difference between the integers bb and 4a*c.


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.