Answer:
The answer for this question is Kry+Ptography
Answer:
// program in C++.
#include <iostream>
using namespace std;
// main function
int main()
{
// variables
int N;
bool flag = true;
cout << "Enter a positive number: ";
// read number
cin >> N;
// check number is positive or not
while(N<0)
{
cout<<"Number is not positive!! Enter again:";
// read again if input is negative
cin>>N;
}
// check prime or not
for(int a = 2; a <= N / 2; a++)
{
if(N % a == 0)
{
flag = false;
break;
}
}
// if flag is true then prime
if (flag)
cout << "Input number is prime.";
else
cout << "Input number is not prime.";
return 0;
}
Explanation:
Read a number from user and assign it to variable "N".Check number is positive or not.If input is negative then ask again to enter a positive number until user enters a positive number.If input is divisible by any number from 2 to n/2 set flag equal to "false".After the loop, if flag is "true" then print number is prime else number is not prime.
Output:
Enter a positive number: -12
Number is not positive!! Enter again:-5
Number is not positive!! Enter again:23
Input number is prime.
Answer:
The correct answer is:
Option 1: print("Coding rocks!")
Explanation:
Coding Rocks! is a string and when the string has to be printed directly using print function it is written in quotation marks.
In the given options,
The first option is correct as the syntax of print is correct and the string is written in quotation marks.
In the other options, either the syntax is not correct or the quotation marks are missing.
Hence,
The correct answer is:
Option 1: print("Coding rocks!")
A characteristic that denotes integrity and truthfulness, along with the absence of lying, cheating, or theft is honesty.
<h3>What is honesty?</h3>
The term honesty is known to be a word that connote honor, integrity, probity and also a sense of uprightness in regards to character or action.
Note that the characteristic is one that shows or denotes positive, virtuous attributes e.g. integrity, truthfulness, and straightforwardness and it is one that is made up of the absence of lying, cheating, or any form of theft.
Hence, A characteristic that denotes integrity and truthfulness, along with the absence of lying, cheating, or theft is honesty.
Learn more about integrity from
brainly.com/question/14342720
#SPJ1