online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
print("Welcome! See how long you can stay alive you have 10 points don't get to 0!") from random import randint import random score = 10 while True: num1 = randint(0, 1000) num2 = randint(0, 1000) op = random.choice(["+", "-", "*", "/"]) if op == "+": print(num1, "+", num2, "= ?") answer = num1 + num2 elif op == "-": print(num1, "-", num2, "= ?") answer = num1 - num2 elif op == "*": print(num1, "*", num2, "= ?") answer = num1 * num2 elif op == "/": print(num1, "/", num2, "= ?") answer = num1 / num2 else: print("Not a Number!!!! please reload and try again") x = float(input("What is the answer? ")) if x == answer: score += 1 print("CORRECT, your score is:", score) elif x != answer: score -= 1 print("Correct Answer:", answer) print("You lost a point! Current score:", score)

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