Answer:
Check the explanation
Explanation:
Player 1 Coin
Player 2 Coin
Player 1
Player 2
Round
Count at
Count at
Player
Player
Coin
Coin
Number
Beginning of
Beginning of
1
2
Outcome
Count at
Count at
Round
Round
Spends
Spends
End of
End of
Round
Round
Off-by-
one,
10 - 1
10
10
2
player 2
10 - 2
+
= 8
1
gains 1
= 10
coin
Same,
10 - 2
2
8
10
2
2
player 2
-
gains 1
6
+
=
1
=
9
coin
Off-by-
two,
6 - 1
+
3
6
9
3
player 1
2
9 - 3
gains 2
=
=
7
6
coins
Same,
4
7
6
2
2
player 2
7 - 2
6 - 2+
gains 1
=
5
=
coin
5
Kindly check the attached image below to see the well arranged table to solve the above question.
therefore the frequency = 6×10^14
By clicking the update automatically<span> checkbox when inserting the date and/or time into a Word document... hope this helps!!!!</span>
Answer:
#include <bits/stdc++.h>
using namespace std;
bool isPrime(int n)
{
for(int j=2;j<=n-1;j++) //loop to check prime..
{
if(n%j==0)
return false;
}
return true;
}
int main(){
int n;
cout<<"Enter the integer"<<endl;//taking input..
cin>>n;
if(isPrime(n))//printing the message.
{
cout<<"The number you have entered is prime"<<endl;
}
else
{
cout<<"The number is not prime"<<endl;
}
return 0;
}
Output:-
Enter the integer
13
The number you have entered is prime
Explanation:
The above written program is in C++.I have created a function called isPrime with an argument n.I have used a for loop to check if the number is prime or not.In the main function I have called the function isPrime for checking the number is prime or not.
Answer:
SELECT vendor_number, vendor_name, CONCAT ('street', ' ' , 'city', ' ' , 'state', ' ' , 'zip code') as adress
FROM vendor_directory
ORDER BY vendor_name ASC;
Explanation:
* Suppose <u>vendor_directory</u> is the name of the table from which you extract the data with the SELECT sentence.