online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
# expression to be evaluated user_expr = input("Enter an expression in terms of variable a: ") # enter the value of variable a = int(input("Enter the value of a: ")) # evaluate the expression result = eval(user_expr) # printing evaluated result print("Result = {}".format(result))

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