Program for finding the maximum of three numbers using conditional operator ?
Answers
Answered by
0
Answer: Program
void main()
int a,b,c,t,max;
printf("enter 3 numbers\n");
scanf("%d%d%d",&a,&b,&c);
t=a>b? a:b;
max=t>c? t:c;
printf("\nmax value is %d",max);
Similar questions