online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/*Program to understand the use of relational operators*/ #include<stdio.h> int main() { int a,b ; printf("Enter values for a and b : "); scanf("%d%d",&a,&b); if(a<b) printf("%d is less than %d\n",a,b); if(a<=b) printf("%d is less than or equal to %d\n",a,b); if(a==b) printf("%d is equal to %d\n",a,b); if(a!=b) printf("%d is not equal to %d\n",a,b); if(a>b) printf("%d is greater than %d\n",a,b); if(a>=b) printf("%d is greater than or equal to %d\n",a,b); if(a=b){ //value of expression is b and not 1 or 0. printf("Assignment operator"); printf("\n%d", a=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