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: The tool that could be used to display only the rows containing the presidents who served two terms is the<u> Filter.</u>
Explanation:
If you are using Excel the filter tool is a great way to find the relevant information you are searching for. This will remove all other data from the search results, in this case presidents that only served one term.
The filtering of rows can be used three ways;
- By the value
- By the criteria
- By the format
By using the filter, you can find any phrase, number, dates, etc. Multiple columns can be filtered at the same time. Also, blank cells can be filtered out.
Answer:
I think its called "cloud computing"
Complete question :
Sue is planning a theme park trip for her husband, herself, and her three children. She has a budget of $500. Adult tickets cost $55 each, and child tickets cost $25 each. Which formula should go in cell B4?
Answer:
=E1B1+E2B2
Explanation:
Cost of adult ticket = $55
Child ticket = $25
Number of adult = 2
Number of children = 3
Assume :
Cost of adult ticket = $55 = E1
Child ticket = $25 = E2
Number of adult = 2 = B1
Number of children = 3 = B2
The formula that should go into cell B5 in other to calculate total amount :
Total should be :
($55*2) + ($25*3)
=E1B1+E2B2
It’s all depending on what method