online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Program To Print Floor And Ceiling Values Of the Given Number import java.util.*; class Main { public static void main(String args[]) { float n; Scanner obj = new Scanner(System.in); System.out.print("Enter The Number : "); n=obj.nextFloat(); int y = (int)n; if (y == n) { System.out.println("The Ceiling Value of the Given Number is : " +y); System.out.println("The Floor Value of the Given Number is : " +y); } else if (n<0) { System.out.println("The Ceiling Value of the Given Number is : " +y); System.out.println("The Floor Value of the Given Number is : " +(y-1)); } else { System.out.println("The Ceiling Value of the Given Number is : " +(y+1)); System.out.println("The Floor Value of the Given Number is : " +y); } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue