online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
def numberOfDayOfWeek(day): daysweekEN = ("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday") numeralEN = ("first", "second", "third", "fourth", "fifth", "sixth", "seventh") for dayName in daysweekEN: if dayName == day: return numeralEN[daysweekEN.index(dayName)] day = "wednesday" print(f"{day} is the {numberOfDayOfWeek(day)} day of the week.") day = "friday" print(f"{day} is the {numberOfDayOfWeek(day)} day of the week.") day = "monday" print(f"{day} is the {numberOfDayOfWeek(day)} day of the week.")

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