online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
''' Program to demonstrate a while loop ''' secret_number = 7 # The number to guess print("Guess the secret number between 1 and 10.") # Start with an initial guess guess = None # Continue looping until the correct number is guessed while guess != secret_number: # Ask the user to enter a guess guess = int(input("Enter your guess: ")) # Check if the guess is too high, too low, or correct if guess < secret_number: print("Too low, try again!") elif guess > secret_number: print("Too high, try again!") else: print("Congratulations! You guessed the number!") print("Game over.")

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