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:
<h2>
3,654 different ways.</h2>
Step-by-step explanation:
If there are 30 students in a class with natasha in the class and natasha is to select four leaders in the class of which she is already part of the selection, this means there are 3 more leaders needed to be selected among the remaining 29 students (natasha being an exception).
Using the combination formula since we are selecting and combination has to do with selection, If r object are to selected from n pool of objects, this can be done in nCr number of ways.
nCr = n!/(n-r)!r!
Sinca natasha is to select 3 more leaders from the remaining 29students, this can be done in 29C3 number of ways.
29C3 = 29!/(29-3)!3!
29C3 = 29!/(26!)!3!
29C3 = 29*28*27*26!/26!3*2
29C3 = 29*28*27/6
29C3 = 3,654 different ways.
This means that there are 3,654 different ways to select the 4 leaders so that natasha is one of the leaders
Natural numbers are closed under division: false.
A set is closed under a certain operation if the results of that operation are always inside that set.
So, if natural numbers were closed under division, the division of two natural numbers would always be a natural number.
You have plenty of counterexamples, to pick one you may divide any odd number by 2: 5/2 is not a natural number.
Negative numbers are closed under addition: true.
Let
be two positive numbers. So,
are two negative numbers. Their sum is

And since
is positive, we deduce that
is negative, so the sum of two negative numbers is still negative.
Prime numbers are closed under subtraction: false.
This would mean that the subtraction of two primes is also a prime. Again, there are many counterexamples: 7 is prime and so is 3, but their difference 7-3 is 4, which is not prime.
Linear is the correct answer because you don't see any exponents
1) 4
2) 2
Pretty sure thats right