online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
price=2000 #make a function to multiply the price by 0.9 by passing in parameters def simple_reduction (price, num2): answer = price * num2 print ("price is", price) print ("new price is :" , answer) return answer #but not sure how I use a loop to repeat until it is less #than 1000, as the function parameter is set to 2000 #define a while loop while(price>1000): price=simple_reduction(price, 0.9)

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