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.
Explanation:
License boot module c2900, technology-package uck9
They are arranged the way they are because of the QWERTY layout. It was used to slow down how people typed so they wouldn't get the typewriter jammed. Hope this helps. :)
Hello there.
Question: <span>If you see an advertisement for a 3TB portable drive, this is most likely a reference to the device having a capacity of three _____.
Answer: It is 3 terabytes. .
Hope This Helps You!
Good Luck Studying ^-^</span>
Answer:
Which statement accurately describes his key to success?
Explanation:
The success in Netflix lies in offering:
1. Entertainment;
2. fun;
3. originality;
4. innovation and
5. happiness.
Netflix learning is:
1. Bet on your content.
2. Brand Personality.
3. Visual universe.
4. Customization
5. Big Data helps Netflix continue to grow and improve customer service.