Professional Documents
Culture Documents
Formula General
Formula General
Formula General
Scanner;
/**
*
* @author Compiler Math
*/
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner sc = new Scanner(System.in);
double a,b,c; //Valores de la ecuación de 2° grado
double X0,X1; //Posibles resultados
System.out.println("Valor a:");
a = sc.nextDouble();
System.out.println("Valor b:");
b = sc.nextDouble();
System.out.println("Valor c:");
c = sc.nextDouble();