online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
''' Demo code for while loops in python 9/29/2021 -Dr. G ''' #1. Create a hello world program in the standard structure #Counting while loop #1. Create a while loop that will count from 1 - 10 inclusive #2. Create a while loop that will count backwards 10 - 1 inclusive #Sentinel controlled while loop #1. Ask the user for a number from 1 - 10 with a sentinel controlled while loop #2. If they enter an invalid number, print "I said 1 - 10" and get input again #3. Create different messages for 1, 2, and 3 incorrect attempts #4. After 3 failed attempts give up by using a break #Break and continue a closer look #1. Create an infinite loop, on purpose #2. Run this loop and send a kill signal to stop it (CTRL - C) #3. Count from 1 - 100, but print only numbers divisible by 10 and 3 #4. Count in increments of 5 from 0 - 55. Use continue to skip 10,20,30,40,50 #Nesting while loops #1. Create 10 rows of increasing *'s increase 1 each time #Debugging a loop ''' * ** *** ... '''

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