Social Sciences, asked by souyanbrothers, 3 months ago

input 3 numbers. print out maximum using ternary operator​

Answers

Answered by ItzBrainlyQueen01
19

Explanation:

\huge{\textbf{\textsf{{\color{navy}{꧁An}}{\purple{sw}}{\pink{er꧂}}{\color{pink}}}}}

#include<stdio.h>

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);

}

\huge\rm\red{Thanks}

Similar questions