Friday 3 August 2012

Find The Largest Number Among Three


#include<stdio.h>
#include<conio.h>
void main()

{
  int a,b,c,large;

  printf("\nEnter 3 numbers:");
  scanf("%d %d %d",&a,&b,&c);

  large=(a>b&&a>c?a:b>c?b:c);
  printf("\nThe biggest number is: %d",large);

getche();
}

No comments:

Post a Comment