def Calc(): while(True): expr=input() if expr == "exit": return print(expr+"="+str(eval(expr))) Calc()
2+6*(9-12) 45+63/(22+3)-34 exit
2+6*(9-12)=-16 45+63/(22+3)-34=13.520000000000003
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!