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:
7.5 cups of raisins, 10 cups of peanuts and 5 cups of chocolate chips.
Step-by-step explanation:
We are given that,
The amount of ingredients needed for the trail mix are,
Raisins = cup
Peanuts = 1 cup
Chocolate chips = cup
Since, Kiran needs to make 10 cups of the trail mix.
The amount of ingredients needed will be,
Raisins = = = 7.5 cups
Peanuts = 1 × 10 = 10 cups
Chocolate chips = = 5 cups
Hence, the ingredients needed are 7.5 cups of raisins, 10 cups of peanuts and 5 cups of chocolate chips.
First thing you should do is reduce coefficients.
1st equation has all multiples of '2'. Divide by 2
---> x +3y = -6
2nd equation has multiples of 5. Divide by 5.
---> x - y = 2
Now elimination part is easier.
Eliminate 'x' variable by subtracting 2nd equation from 1st.
x + 3y = -6
-(x - y = 2)
----------------------
4y = -8
Solve for 'y'
4y = -8
y = (-8)/4 = -2
Substitute value for 'y' back into 2nd equation:
x - (-2) = 2
x + 2 = 2
x = 0
Solution to system is:
x=0, y =-2
Answer: Its the 2nd and 4th
Step-by-step explanation:
i am sorry i know its not gonna help you now but its for others!
Answer:
y=-1/2x-3
Step-by-step explanation:
sorry if wrong form, there are like 6, but that is correct if in the right form