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:
You could just go to social medIa to say j.o.i.n z.o.o.m not brainly mate
Answer:
D
Explanation:
Adobe Dreamweaver can hep him make a website and publish it.
Answer:
The three options are:
1. Avoid sharing files and folders over the network without the permission of your administrators. You might fall in trouble otherwise.
2. Never share your credit card details with a third party through the internet. You can lose a lot of or all your money.
3. Always ensure that your password is strong enough or else your account can be hacked, And never share them with anybody.
Explanation:
Please check the answer.
Answer:
#include<iostream>//library inclusion
using namespace std;
int main()
{
int userInput;
do//start of do while loop
{
cout << "Enter a number less than a 100" << endl;
cin >> userInput;
if (userInput < 100) //condition
{
cout << "YOu entered less than a hundred: " << userInput << endl;
}
else
{
cout << "your number is greater than 100" << endl;
}
} while (userInput > 100);//condition for do while
return 0;//termination of int main
}
Explanation:
The program has been commented for you. The do-while loop enters the first loop regardless of the condition. Then after the first iteration, it checks for the condition. If the condition is being met, it will iterate through, again. Otherwise it will break out of the loop and land on the "return 0;" line. Which also happens to be the termination of the program in this case. The if-else condition is used for the user to see when prompted.