online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { char numSets[100]; int number = 0; char q; char quitTest1 = 'q'; char quitTest2 = 'Q'; //get number of sets from user printf("\nEnter desired amount of random number sets (or 'q'/'Q' to quit): "); fgets(numSets, sizeof(numSets), stdin); if (sscanf(numSets, "%d", &number)){ printf("%d", number); //testing //return number; } if (sscanf(numSets, "%c", &q) && (q == quitTest1 || q == quitTest2)) printf("Exited"); else{ puts("Invalid input"); } //return number; //will return 0; }

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