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 (a > b && a > c) printf("The largest number of %d %d %d is %d\n",a,b,c,a);
else if (b > a && b > c) printf("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;
}
Downloads:
Download: 3.c 368 B
Please login or Click Here to register for downloads
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 www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
