online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** system function author: Thin Rabbit date: 2021-5-22 *******************************************************************************/ #include <iostream> #include <cmath> using namespace std; int main() { int a=-5; float b=3.14; cout<<abs(a)<<endl; //Returns the absolute value of x: |x| cout<<ceil(b)<<endl; //returning the smallest integral value that is not less than x cout<<floor(b)<<endl; //Rounds x downward, returning the largest integral value that is not greater than x cout<<pow(a,2)<<endl; //Returns base raised to the power exponent cout<<sqrt(9)<<endl; //Returns the square root of x return 0; }

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