1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Snezhnost [94]
4 years ago
12

Return true if the given non-negative number is a multiple of 3 or 5, but not both. Use the % "mod" operator.

Computers and Technology
1 answer:
Pani-rosa [81]4 years ago
4 0

the following C++ function will return true if the given non - negative number is multiple of 5 or 3 else it will return false.

bool function( int x ){

// variable to check if it is multiple of both or not

int number =0;

if(3%x == 0){

number++;

}

if(5%x == 0){

number++;

}

// Now returning by deciding

if( number <=1)

return true;

else

return false

}

You might be interested in
Which of the following is true about database queries?
8_murik_8 [283]

Answer:D

Queries are always saved and can therefore be run on the most up-to-date database information

4 0
3 years ago
You can use view the ______ file to view the hard drive details.
Anastaziya [24]

Answer:

/proc/partitions

5 0
2 years ago
Select the correct answers
Mashutka [201]

Answer:

Use a mixture of External and Internal Links....

Explanation:

8 0
3 years ago
Which of the following are advantages of<br> assessments? Check all that apply.
garri49 [273]
Can you add a picture of the options
7 0
3 years ago
Jenny’s needs to buy a computer to create word documents, make presentations, listen to music, and watch movies and videos. Whic
asambeis [7]

Answer:

Windows

Explanation:

The operating system that would be appropiate for Jenny's personal computer is Windows as it is easy to use, the software and programs she is going to need are easily available to install in this operating system and it allows people to interact with it through keyboard and mouse.

6 0
4 years ago
Other questions:
  • Seasons Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month a
    14·1 answer
  • In a pie chart showing showing the voting choices of 120 voters, the blue slice of pie is half of the pie. This means of 60 vote
    12·2 answers
  • RDBMS stands for_________________
    12·1 answer
  • Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
    7·1 answer
  • Which category of management information systems (MIS) combines the forecasting capability of decision support software with the
    12·1 answer
  • 19. Fair use applies to which of the following situations?
    14·1 answer
  • 1. The Bank manager is imposing a 10% interest rate on the new salary loan to every account in the BPI Family Bank. (ANSWER SHOU
    15·1 answer
  • Plz help me I will mark as the brainlest I only need long answer plz help me ​
    13·1 answer
  • In the Burp Suite Program that ships with Kali Linux, what mode would you use to manually send a request (often repeating a capt
    14·1 answer
  • Why do you think fax machines use RLE?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!