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
In what way, if any, are problems related to conflicts? Problems and conflicts are the same thing. Problems and conflicts are th
Marrrta [24]

Answer:

A small problem can turn into a huge one if there is conflict and it you allow it to fester,

Explanation:

according to Helpguide.org. It is a mistake to assume that all conflicts are problems because they are not. The problem is in figuring out how to effectively deal with problems that can become conflicts, according to Neil Thompson of Avenue Consulting.

4 0
2 years ago
What is the aspect ratio of this photo?<br> A) 29.97<br> B) 1:1<br> C) 4:3<br> D) 9:16<br> E) 1080p
UkoKoshka [18]

Answer:

1080p

Explanation:

3 0
2 years ago
What explains the discrepancy between the number of bytes you can
sergejj [24]

Answer:

This is because, the advertisers report the storage space in decimal while the computer reads the storage space in binary.

Explanation:

The advertisers report the storage space in decimal or base 10 because humans count in decimal, whereas the computer reports the storage space in binary or base 2.

Since the computer storage is in bytes and 8 bits equal 1 byte, It is easier to write a storage space of 1 kB as 1000 B but it is actually supposed to be 1024 B(2¹⁰). So, there is a discrepancy of 1024 B - 1000 B = 24 B.

As  we go higher, the discrepancy increases. For example, 1 MB is advertised as 1000 kB = 1000000 B but is actually supposed to be 1024 kB = 1024 × 1024 B = 1048576 B. So, there is a discrepancy of 1048576 B - 1000000 B = 48576 B.

So, the actual number of bytes on the storage device is actually less than that reported due to the different number systems in which they are reported in. This discrepancy is less in memory cards or flash drives though in which the stated value of storage capacity might be the actual storage size.

Note that the base 10 or decimal system was chosen by advertiser since this is what consumers understand.

8 0
3 years ago
The blank provides access to the internet May also be internal ??
WINSTONCH [101]

The answer is : Modem .   It is a device that provides access to the Internet and it may also be internal. Modem is short for "Modulator / Demodulator." It is a hardware component that allows a computer or other device such as a router or switch, to connect to the Internet. It converts an analog signal from a cable wire to a digital signal that a computer can recognize.

5 0
3 years ago
Re write the program below and correct all the errors
Serggg [28]

one = 1

two = 2

three = 3

four = one + 3

print(four)

hello = "hello"

world = "world"

helloWorld = hello + " " + world

print(helloWorld)

7 0
3 years ago
Other questions:
  • A suspension system that allows one wheel to move up and down with minimal effect on the opposite wheel is called what? A. Stabi
    14·2 answers
  • True or False: You should only use your mirrors to see behind you when parallel parking.
    14·2 answers
  • Oliver’s night job at the university computing center is to change the tapes used for overnight data backups on the server. Whil
    9·1 answer
  • A USB is used for _________.[ pick the best answer that makes sense]
    14·2 answers
  • Anyone know the answer I need help
    12·1 answer
  • Digital subscriber lines: are very-high-speed data lines typically leased from long-distance telephone companies. are assigned t
    5·1 answer
  • Que medios se utilizan para respaldar información?
    8·1 answer
  • Anti-bullying laws in most states are designed to provide
    12·1 answer
  • How should a common data source, like social media comments, be categorized
    8·1 answer
  • Please help me to creat flow chart​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!