C Program To Find Largest Of Three
/*Program To Find Largest Of Three */
#include <stdio.h>
int main()
{int a,b,c,largest;
printf("Enter The Value Of a:--");
scanf("%d",&a);
printf("Enter The Value Of b:--");
scanf("%d",&b);
printf("Enter The Value Of c:--");
scanf("%d",&c);
largest=a>b?a:b>c?b:c;
printf("Largest:--");
printf("%d",largest);
return 0;
}
/*Program To Find Largest Of Three */
#include <stdio.h>
int main()
{int a,b,c,largest;
printf("Enter The Value Of a:--");
scanf("%d",&a);
printf("Enter The Value Of b:--");
scanf("%d",&b);
printf("Enter The Value Of c:--");
scanf("%d",&c);
largest=a>b?a:b>c?b:c;
printf("Largest:--");
printf("%d",largest);
return 0;
}
0 Comments