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
Lisa [10]
3 years ago
7

Write an algorithm which gets a number A, if it is even, prints even, and if it is odd prints odd.

Computers and Technology
1 answer:
juin [17]3 years ago
7 0

Answer:

The algorithm to find A is even or odd.

  1. input A.
  2. Check the remainder on diving by 2 by A%2.
  3. If remainder is 1 then A is odd Print(Odd).
  4. If remainder is 0 print(Even).

Explanation:

To check if the number is even or odd we use modulo  operator(%).Which gives the remainder on dividing.So if we do this A%2 it will give the remainder that will come out on dividing the value of A by 2.

So if the remainder comes out is 1 then the number is odd and if the remainder is 0 then the number is odd.

You might be interested in
What does this program does?
tester [92]
Peoples from around the world help you answer the question you have.
4 0
4 years ago
Your company has just purchased an iSCSI storage array. You have installed a new iSCSI device onto your Ethernet network and you
Mars2501 [29]

Answer:

D) ISCSI Initiator

Explanation:

5 0
4 years ago
Two or more computers connected together is referred to as a(n)
son4ous [18]
Two or more computers connected together is referred to as a network.
So the answer is <span>B. network.</span>
8 0
3 years ago
What could prevent earmuffs from providing your ears good protection from noise?
uranmaximum [27]
Well for one thing, ear muffs were made to keep your ears warm, not protection from noise.
3 0
4 years ago
Jason wants to play a DVD. His Mac doesn't have a DVD drive, but his friend's Mac has one. Which Mac feature can Jason use to ac
Delicious77 [7]

Answer:

he could use his mac book and let his friend use his mac book

Explanation:

3 0
3 years ago
Other questions:
  • What would be a situation in which you could use an Excel chart to present your data?
    11·2 answers
  • Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value is consi
    6·1 answer
  • Help thanks appreciate it
    12·1 answer
  • The command button to protect a document is part of the​.
    10·1 answer
  • Write any two rule of function​
    10·1 answer
  • Which of the following is the shortcut key combination for pasting copied text?
    11·2 answers
  • What is it with the order of operations
    9·1 answer
  • According to peacemaking criminology, our society denying a citizen's basic rights is another dimension of
    5·2 answers
  • Ssume that the timeout values for all three protocols
    8·1 answer
  • You've finished programming the app! Now your company has to decide whether to use an open source
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!