online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import math print(" + (addition) , - (subtraction), * (multiplication) ,/ (division) , ** (power)") print("use space as delimenter ") string=str(input("Enter Expression ")) string=string.replace("sin","math.sin") string=string.replace("cos","math.cos") string=string.replace("tan","math.tan") string=string.replace("sec","math.sec") string=string.replace("cosec","math.cosec") string=string.replace("log","math.log") string=string.replace("e","2.718281828459045") print(string) a=float(input("Enter upper bound ")) b=float(input("Enter lower bound ")) delta_x=(a-b)/100000 inputs=[] while b<=a: inputs.append(b) b=b+delta_x inputs.append(b) #print(inputs) n-partitions res=0 for i in inputs: x=i if i==a: res=res+eval(string) elif i==b: res=res+eval(string) else: res=res+(2*eval(string)) res=(delta_x/2)*res print("Value after integration is...",res)

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