online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
def quiz(): correctAnswer=0 print("It's quiz time!") ###第一个问题 print("Is Oscar handsome?") response1=input("answer:") if (response1=="yes,he is" or response1=="yes" ): print("correct!") correctAnswer=correctAnswer+1 else: print("wrong!") ###第二个问题 print("1+1=?") response2=input("answer:") if (response2=="2"): print("correct!") correctAnswer=correctAnswer+1 else: print("wrong!") ###第三个问题 print("who is the best basketball player in the history?") response3=input("answer:") if (response3=="Wilson Ni"): print("correct!") correctAnswer=correctAnswer+1 else: print("wrong!") ###第四个问题 print("去年nba总冠军是谁?") print("A,勇士") print("B,尼克斯") print("C,上海大鲨鱼") print("D,凯尔特人") response4=input("answer:") if (response4=="A"): print("correct!") correctAnswer=correctAnswer+1 else: print("wrong!") ###第五个问题 print("Is CS interesting?") response5=input("answer:") if (response5=="yes"): print("correct!") correctAnswer=correctAnswer+1 else: print("wrong!") per=correctAnswer/5*100 print("you have got",correctAnswer,"questions right") print("your percentage is",per,"%") quiz()

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