C Program : Relational Operators

 #include <stdio.h>

int main() { int a, b; printf("Enter the value of a: "); scanf("%d", &a); printf("Enter the value of b: "); scanf("%d", &b); printf("%d == %d is %d\n", a, b, a == b); printf("%d != %d is %d\n", a, b, a != b); printf("%d > %d is %d\n", a, b, a > b); printf("%d < %d is %d\n", a, b, a < b); printf("%d >= %d is %d\n", a, b, a >= b); printf("%d <= %d is %d\n", a, b, a <= b); return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management