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
irina [24]
3 years ago
8

Ask the user to enter a number. Display whether the number is odd or even. computer science answers

Computers and Technology
2 answers:
notsponge [240]3 years ago
6 0

Answer:

Write a C program to check whether a number is even or odd using if else. How to check whether a number is even or odd using if else in C program. C Program to input a number from user and check whether the given number is even or odd. Logic to check even and odd number using if...else in C programming.

Explanation:

lilavasa [31]3 years ago
3 0

Answer:

See the explanation below.

Explanation:

In the beginning, we use the modulus operator i.e. %, to check whether a number is even. If a number is fully divided by 2 without giving a remainder, it is an even number. A working code is given below in the attachment.

For larger numbers we use faster algorithm techniques. Read more about  an interesting algorithm to find prime numbers, named, sieve of eratosthenes method by visiting: cutt.ly/rgc4dmr

To run a code online, my favorite IDE is repl.it

Visit: repl.it/languages/python3

to run a sample code now without installation setups.

Best Regards!

You might be interested in
why do programs include keyboard shortcuts for certain actions? do you prefer the mouse or the keyboard/ why?
Archy [21]
I would prefer the shortcut because it would make it easier to open tabs and close them too. but the can also help you with other stuff to .
4 0
3 years ago
The ______ Works on a single variable or constant. *​
lora16 [44]

Answer:

man

Explanation:

6 0
3 years ago
Which of the following “invisible” marks represents an inserted tab?
maria [59]
I believe C is the answer.
8 0
3 years ago
Read 2 more answers
What is the standard internet protocol, which provides the technical foundation for the public internet?
luda_lava [24]
You have to be carefull no bulling cuiberbulling people hurt there self for stuff like that
3 0
3 years ago
; This program replaces the value in R0 with its absolute value. ; ; It does NOT modify any other registers! ; .ORIG x0200 START
olasank [31]

Using the knowledge in computational language in LC-3 Assembly it is possible to write a code that replaces the value in R0 with its absolute value

<h3>Writting the code </h3>

       .ORIG x0200

START

       AND R0, R0, #0  ; copy R0 to itself to set the condition codes based on R0;

                       ; i.e performing addition operation with Zero option to set the flags

       BRzp DONE       ; if R0 is NON-NEGATIVE, skip the negation (already correct);

                       ; Branch to DONE if number is poistive

       NOT R0, R0      ; R0 is negative, so negate it i.e taking 2's complement

       ADD R0, R0, #1  ; R0 = -R0 is performed successfully

DONE    BR START

       

       .END

See more about  LC-3 Assembly at brainly.com/question/12978370

#SPJ1

4 0
2 years ago
Other questions:
  • Think of a game you are familiar with and identify at least three team responsibilities which were required to make the game, on
    5·1 answer
  • What weight pencil is recommended for darkening lines and for lettering? *
    7·2 answers
  • You are adding new wires in your building for some new offices. The building has a false ceiling that holds the lights and provi
    8·1 answer
  • Presently we can solve problem instances of size 30 in 1 minute using algorithm A, which is a algorithm. On the other hand, we w
    8·1 answer
  • MULTIPLE CHOICE QUESTION PLEASE HELP!!!!!!!!!
    14·2 answers
  • Which screen should be open to customize or personalize a desktop background?
    15·2 answers
  • A ______ is a portable device for recording audio and video.
    10·2 answers
  • Is anyone else having issues with brainly not working? Everytime I click on a answer it only comes up with the 7 month trail thi
    12·1 answer
  • The notes added to slides can be seen during the presentation. TRUE OR FALSE​
    13·1 answer
  • Please list 15 safety rules that you think should be practiced in the Computer Technology classroom/lab.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!