online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
# The for loop is a way to iterate over a series # Below, we'll use it to print off every element in a list myList = [30, 10, 7, 20, 1.7] print("Items in myList:") for item in myList: print(str(item)) # Here we make a new variable named "item" # The word "in" lets us know we're talking about about iterating through a list # "item" changes its value each time the for loop loops # Using the same list "myList", use a for loop and an if statement INSIDE the for loop to print only the even numbers # for ? in ?: # if(?): # print(?)

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