C Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start C Course
Register
[TUTORIAL] ➡️ equal operator as a condition
+3
Author: Bits!
Dark
Public
Save
C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// C program to demonstrate
// working of relational operators
#include
<
stdio.h
>
int
main
()
{
int
a
=
10
,
b
=
4
;
// equal to
if
(
a
==
b
)
printf
(
"a is equal to b\n"
);
else
printf
(
"a and b are not equal\n"
);
return
0
;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT