online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include<stdio.h> int main() { __uint16_t value1 = 1400; __uint16_t value2 = 15; __uint16_t result = 0; __uint16_t result2 = 0; float div = 0.0; float div2 = 0.0; div = value1 / value2; result = (int)div; div2 = (float)value1 / value2; result2 = (int)div; printf("div: %.6f \n", div); printf("result: %i \n \n", result); printf("div2: %.6f \n", div2); printf("result2: %i \n \n", result2); }

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