fork download
  1. import java.lang.Math.*;
  2. class Main
  3. {
  4. public static void main (String[] args) throws java.lang.Exception
  5. {
  6. double x=2;
  7. double y=500;
  8. double z;
  9. z=ceil(x/y);
  10. System.out.println("The ceiling of"+ z);
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:9: cannot find symbol
symbol  : method ceil(double)
location: class Main
       z=ceil(x/y);  
         ^
1 error
stdout
Standard output is empty