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
rosijanka [135]
3 years ago
8

Write an algorithm to find out whether a number entered is divisible by 5​

Computers and Technology
1 answer:
Lynna [10]3 years ago
4 0

Explanation:

Logic to check divisibility of a number

Input a number from user. ...

To check divisibility with 5, check if(num % 5 == 0) then num is divisible by 5.

To check divisibility with 11, check if(num % 11 == 0) then num is divisible by 11.

Now combine the above two conditions using logical AND operator && .

You might be interested in
What is the output of the AWK program?
zhannawk [14.2K]
Luckily your file uses YYYY-MM-SS HH:MM:SS timestamps, which sort alphabetically. Those can be compared with < > <= etc without worrying about any date math. MIN="..." and MAX="..." are where those values are input into awk.
4 0
3 years ago
Based on the strength of the magnetic fields they produce, arrange the solenoids from strongest to weakest
Deffense [45]

Answer:

C, D, B and A.

Explanation:

Electromagnet in option C is strongest because it has an iron core and the largest current as compared to other solenoids, following by D and then B whereas solenoid A is the weakest because of the absence of an iron core and has the smallest current. Solenoid having iron core is the strongest solenoid because the core produces more strong magnetic field as compared to no iron core.

8 0
3 years ago
________ is a programming language invented by netscape used to control the objects on an html page and handle interactions with
spayn [35]
The answer is JavaScript
5 0
3 years ago
Select the answer that best describes the activity
Anastasy [175]

Answer:

software piracy

Explanation:

8 0
3 years ago
Read 2 more answers
(3 marks)
muminat

Answer: 1.5 : 1

Explanation:

The average of 92 marks for the test is a weighted average of the proportion of students in the class.

Assume boys are in the proportion, x.

(90 * x) + (95 * (1 - x)) = 92

90x + 95 - 95x = 92

-5x = 92 - 95

-5x = -3

x = -3/-5

x = 0.6

Boys are 0.6 of the class

Girls are:

= 1 - 0.6

= 0.4

0.6 : 0.4

1.5 : 1

3 0
3 years ago
Other questions:
  • Once Raul selects a technology solution, he has completed the process. <br> a. True<br> b. False
    13·2 answers
  • Pls help............
    9·2 answers
  • What are the considerations that go into representing information digitally? What are the trade-offs? What’s easy? What’s hard?
    13·1 answer
  • When is e-mail an appropriate channel for goodwill messages? If you frequently communicate with the receiver by e-mail and are c
    15·1 answer
  • Susan teaches many individuals and business professionals how, why, and the benefits and challenges to using social media. Of th
    15·1 answer
  • Is open office compatible will all web browsers without requiring a plug in?
    8·1 answer
  • Type of file containing instructions that tell your computer how to perform ___
    9·1 answer
  • Choose the term described. : a value that can be passed to a function
    9·1 answer
  • The Internet Protocol Suite consists of the Internet Protocol and _____. a. Transmission Control Protocol b. File Transfer Proto
    15·2 answers
  • Data will zip through a 5G network much faster than through a 4G network because of the 10-fold difference in _____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!