fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
  15.  
  16. Class Test {
  17. Public static woid main (String [] args ) {
  18. Scanner read = new Scanner (System.in);
  19. System.outprintln ("Ââåäèòå ÷èñëî:");
  20. Double x=read.nextDouble ();
  21. double y = 0
  22. if (x<-5)
  23. System.out.println ("Îøèáêà!Êîðåíü èç îòðèöàòåëüíîãî ÷èñëà!")æ;
  24. else if (x = = 7)
  25. System.out.println ("Îøèáêà!Äåëåíèå íà íîëü!");
  26. else {
  27. y -(x - Math/sqrt(x+5))/(x-7);
  28. System.out.println("y= " + y);
  29. }
  30.  
  31. }
  32.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:16: error: class, interface, or enum expected
Class Test {
^
Main.java:19: error: class, interface, or enum expected
	System.outprintln ("??????? ?????:");
	^
Main.java:20: error: class, interface, or enum expected
	Double x=read.nextDouble ();
	^
Main.java:21: error: class, interface, or enum expected
	double y = 0
	^
Main.java:24: error: class, interface, or enum expected
	else if (x = = 7)
	^
Main.java:26: error: class, interface, or enum expected
	else {
	^
Main.java:28: error: class, interface, or enum expected
	System.out.println("y= " + y);
	^
Main.java:29: error: class, interface, or enum expected
}
^
8 errors
stdout
Standard output is empty