online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
def calcularPrecio(entrada): # x = int(input()) x = entrada if x <= 100: y = 0.1 else: y = 0.25 precio = x * (1 - y) precio = round(precio + 0.005, 1) precio = int(precio) if precio.is_integer() else precio print(precio) numeros = [ 58, 7, 200, 199 ] for numero in numeros: calcularPrecio(numero) # changed to "def" for demonstration purposes ''' 58 = 52.2 7 = 6.3 200 = 150 199 = 149.3 '''

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