fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. public class SquareRoot {
  4.  
  5. public static void main(String[] args) {
  6. double a = 3;
  7. double b = 2.5;
  8. double c = -0.5;
  9. double d;
  10.  
  11. if( d>=o)
  12. {
  13. d=(b*b)-(4*a*c);
  14. x1=(-b-Squar.Math(d))/2*a;
  15. x2=(-b+Squar.Math(d))/2*a;
  16. System.out.println("x1="+x1);
  17. System.out.println("x2="+x2);
  18. }
  19. else
  20. }
  21. }
  22.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:20: error: illegal start of statement
	}
	^
1 error
stdout

Standard output is empty