#include <stdio.h>
main()
{
int a, b, c, max;
printf("Enter three numbers : ") ;
scanf("%d %d %d", &a, &b, &c);
max = (a > b) ? (a > c ? a : c) : (b > c ? b : c) ;
printf("\nThe biggest number is : %d", max) ;
}
main()
{
int a, b, c, max;
printf("Enter three numbers : ") ;
scanf("%d %d %d", &a, &b, &c);
max = (a > b) ? (a > c ? a : c) : (b > c ? b : c) ;
printf("\nThe biggest number is : %d", max) ;
}
No comments :
Post a Comment