online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { char a[10]; char b[10]; int value=0,i=0; printf("enter the first word"); scanf("%s",a); printf("enter the second word"); scanf("%s",b); while(a[i]!='\0'&&b[i]!='\0') { if(a[i]!=b[i]) { value++; } i++; } if(value==0) printf("%s IS CORRECT",b); else if(value<=2) printf("%s IS ALMOST CORRECT",b); else printf("%s IS WRONG",b); 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