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
Studios had to forgo the theatre business in the late_1__ because of the rising theatre rents and advertising costs. Television
uysha [10]

Answer:

gfdhdf

Explanation:

6 0
3 years ago
What type of gloves protects your hands from hazardous chemicals?
zepelin [54]
Gloves from the People that have gas masks
3 0
3 years ago
Read 2 more answers
I had no computer-related problems.
padilas [110]
Ummmmmmm A, agree???
8 0
3 years ago
Read 2 more answers
Converting from type ________ to type ________ will result in the loss of data.
Lunna [17]
C. int, char

ints are usually at least 32 bits long, a char is 8 bits long, so the 24 bit question is
7 0
3 years ago
which field in the contact form is used to control the order in which contacts are displayed in the current view
Bond [772]

Answer: File As is used to control the order in which contacts are displayed in the current view

4 0
3 years ago
Other questions:
  • Explain the relationship between society and the technologies of using Earth's resources?
    14·1 answer
  • You use the _____ sheet in the format cells dialog box to position data in a cell by centering it, for example.​
    8·1 answer
  • Which of the following is a sigh that your computer may have been infected with malicious code
    12·1 answer
  • Given public class Fishing { byte b1 = 4; int i1 = 123456; long L1 = (long) i1; //Line A short s2 = (short) i1; //Line B byte b2
    15·1 answer
  • Lisa wants to send an email with some confidential Information. Which of these options would work best for her?
    6·1 answer
  • How would you justify using cloud computing?
    12·1 answer
  • What type of account provides the same functions as managed service accounts but can be managed across multiple servers as in a
    8·1 answer
  • 1. Define the term M.A.N.
    5·2 answers
  • How have these advances in-home technology changed the role of technicians in our society?
    10·1 answer
  • A document commonly used in real estate transactions, detailing the fees, commissions, insurance, etc. that must be transacted f
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!