online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
def game(): print("GAME LOADING...") count=0 print("What is the lower bond of the number?") lower_bond=int(input()) print("What is the upper bond of the number?") upper_bond=int(input()) print("Generating a random number between",lower_bond,"-",upper_bond,"....") print("How many tries for the player to win?") times=int(input()) print("GAME READY. Now let's play!") print("Hello, What's your name?") name=input() print("Hi",name,", you are going to guess a number between",lower_bond,"and",upper_bond,".") print("You have",times,"tries to win the game.") import random aaa=int(random.randint(lower_bond,upper_bond)) bbb=int(input("Your first guess is:")) if(bbb==aaa): print("You win the game in 1 tries!") else: i=2 while(i<=times): if(bbb<aaa): print("Your guess is too low") else: print("Your guess is too high") bbb=int(input("Your next guess is:")) if(bbb==aaa): print("You win the game in", i,"tries!") break else: i=i+1 if(i>times): print("You failed to guess the number within",times,"times,the correct is",aaa) game()

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