Computer Science, asked by csanchita661, 2 days ago

The standard form of quadratic equation is represented as ax2 + bx + c = 0 where d = b2 – 4ac , known as Discriminant of the Equation . WAP to input the values of a , b and c . Calculate the value of Discriminant of the Equation and display the result .in c++​

Answers

Answered by sabarish1305
0

Answer:

bx+C=6

Explanation:

Answered by sreenivas011
0

Answer:

import java.util.Scanner;

public class KboatQuadEq

   public static void main(String args[]) {

       

       Scanner in = new Scanner(System.in);

       

       System.out.print("Enter a: ");

       int a = in.nextInt();

       

       System.out.print("Enter b: ");

       int b = in.nextInt();

       

       System.out.print("Enter c: ");

       int c = in.nextInt();

       

       double d = Math.pow(b, 2) - (4 * a * c);

       long roundedD = Math.round(d);

       

       System.out.println("Discriminant to the nearest whole number = " + roundedD);

Explanation:

Similar questions