online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> int count(char x[100]){ int count=0; for(int i=0; x[i]!='\0'; i++){ count++; } return count; } int main() { char s[100]; int strength=0; scanf("%s",s); int n=count(s); if(n>=8){ strength++; for(int i=0; i<n; i++){ if(s[i]>='0'&& s[i]<='9') { strength=2; } if(s[i]>=32 && s[i]<=47 ||s[i]>=58 && s[i]<=64 ||s[i]>=91 && s[i]<=96 ||s[i]>=123 && s[i]<=126){ strength++; break; } } } //printf("%d ",strength); switch (strength){ case 1: printf("Medium"); break; case 2: printf("Good"); break; case 3: printf("Strong"); break; default: printf("Weak"); break; } 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