Tuesday, July 14, 2009

How can i write a java program about quadratic equation?pls help.i made a program but it didnt work.?

import javax.swing.*;


public class equation{


public static void main{


int a,b,c;


string a,b,c;





num1=JOptionPane.showInputDialog("inpu... value of a:");


num2=JOptionPane.showInputDialog("inpu... value of b:");


num3=JOptionPane.showInputDialog("inpu... value of c:");





num1=integer.parseInt(value of a);


num2=integer.parseInt(value of b);


num3=integer.parseInt(value of c);





X1=JOptionPane.showMessageDialog(the first value of x is:");


X2=JOptionPane.showMessageDialog(the secondvalue of x is:");


System.exit();


}


}


what went wrong?tnx

How can i write a java program about quadratic equation?pls help.i made a program but it didnt work.?
please add in the details of your code. i can't actually understand what you were writing. also tell me how the program is supposed to work(give me the specs) and how the quadratic equation is supposed to be implemented.
Reply:You left out quotes.


No comments:

Post a Comment