ImageShack® - Online Photo and Video Hosting
Imageshack - erronobluej.jpg
==========================//====================
public class Bhaskara { int a; int b; int c; int d; double x; double x2; public Bhaskara () { a=1; b=1; c=1; d=1; } public void seta ( int a ); { valor_a=a; } public void setx ( double x ); { valor_x=x; } public void setx2 ( double x2 ); { valor_x2=x2; } public void setb ( int b ); { valor_b=b; } public void setc ( int c ); { valor_c=c; } int d = b*b- (4*a*c); void apply () { if (d = 0) public double xvalue; x = -b + Math.pow (d;1/2)/2*a; return x; else (d < 0) public staticm void main ( string args [] ) { System.out.println ("There'so possible answer"); } else ( d > 0 ) public double xvalue; x = -b + Math.pow (d;1/2)/2*a; return x; public double x2value; x2 = -b - Math.pow (d;1/2)/2*a; return x2; }