Program:
# include <stdio.h>
void main(){
int a,b,c,lrg;
printf("Enter three numbers :") ;
scanf("%d%d%d", &a, &b, &c) ;
lrg = a > b ? (a > c ? a : c) : (b > c ? b : c) ;
printf("\nThe biggest number is : %d\n", lrg) ;
}
Expected O/P:
Enter three numbers :56
54
31
The biggest number is : 56
0 Comments
Post a Comment