Comparison Operators

Comparison operators, <, <=, >, >=, ==, etc.

Operators in C.

Date Created:Saturday March 24th, 2007 12:55 PM
Date Modified:Sunday August 03rd, 2008 11:46 AM

#include <stdio.h>

int main()
    int i,j,a,b,c;
    printf("Enter three numbers");
    scanf("%d %d %d",&a,&b,&c);

    if (&& cprintf("The largest number of %d %d %d is %d\n",a,b,c,a);
    else if (&& cprintf("The largest number of %d %d %d is %d\n",a,b,c,b);
    else printf("The largest number of %d %d %d is %d\n",a,b,c,c);

    return 0;

Download: 3.c 368 B

Please login or Click Here to register for downloads
Creative Commons License
Comparison Operators by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at
Permissions beyond the scope of this license may be available at