online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
# An if statement is a statement that only executes IF the condition is TRUE # An else statement is a statement that only executes IF the condition is FALSE # Try running this quick to see what happens if(1 < 100): print("The condition was true!\n") else: print("The condition was false!\n") # As a note, the \n in the string simply adds a new line at the end of the printout # To write an if statement, it must be in this format # if(condition): # statement if true # else: # statement if false # # You must hit tab to let python know what is in the if/else sections # The if statement below currently does not come out true # Edit the elements in myList to make it execute the first statement myList = [10, 5, 17, 300] if(myList[1] > myList[2]): print("You did it!\n") else: print("Close, but not quite.\n") # Try making your own if/else statement below!

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