1.

What Is The Output Of This Program? 1. Class Output { 2. Public Static Void Main(string Args[]) { 3. Double X = 3.14; 4. Int Y = (int) Math.ceil(x); 5. System.out.print(y); 6. } 7. }

Answer»

ciel(DOUBLE X) RETURNS the SMALLEST whole number greater than or equal to variable x.

OUTPUT:

$ javac Output.java
$ java Output
4

ciel(double X) returns the smallest whole number greater than or equal to variable x.

Output:

$ javac Output.java
$ java Output
4



Discussion

No Comment Found

Related InterviewSolutions