Hello,
function minmax(int p1,int p2,int p3, int adr_big, int adr_small)
{ int mini=p1,maxi=p1;
if (p1>p2) {mini=p2;}
else {maxi=p2;};
if (p3>maxi) maxi=p3;
if (p3<mini) mini=p3;
*adr_big=maxi;
*adr_small=mini;
};
// main
int a=31,b=5,c=19,big,small;
minmax(a,b,c,&big,&small);
Answer:
24
Step-by-step explanation:
1/2(x1+x2)c x1=3 , x2=5 , c=6
:- 1/2(3+5)6 ( BODMAS)
:- 1/2(8)6 divide 8 by 1/2
:- (4)6 multiply both of them and the result = 24
Answer:
Positive
Step-by-step explanation: