Program to understand the use of relational operators | Relational operators in C | Examples of Relational operators by Venkatesh Macha · Published June 3, 2014 · Updated February 27, 2017 Spread the love Program : #include<stdio.h> int main(void) { int a,b ; printf(“Enter values for a and b : “); scanf(“%d%d”,&a,&b); if(a<b) printf(“%d is less than %dn“,a,b); if(a<=b) printf(“%d is less than or equal to %dn“,a,b); if(a==b) printf(“%d is equal to %dn“,a,b); if(a!=b) printf(“%d is not equal to %dn“,a,b); if(a>b) printf(“%d is greater than %dn“,a,b); if(a>=b) printf(“%d is greater than or equal to %dn“,a,b); return 0; } Output : Enter values for a and b : 20 1020 is not equal to 1020 is greater than 10 20 is greater than or equal to 10 Related programs :program to understand Prefix and postfix Increment.C program to find quadratic equation roots.program to understand Floating point Arithmetic’s.implementation of power function.

0 c program to generate fibonacci series using Function November 23, 2014 by Venkatesh Macha · Published November 23, 2014 · Last modified February 27, 2017

0 Pattern 4 : C program to print Pyramid star pattern May 6, 2015 by Venkatesh Macha · Published May 6, 2015 · Last modified February 27, 2017

0 All Available Datatypes in C | Size of all Datatypes in C February 16, 2014 by Venkatesh Macha · Published February 16, 2014 · Last modified February 27, 2017