oforipadmore6 oforipadmore6
  • 10-02-2021
  • Computers and Technology
contestada

Write an algorithm to show whether a given number is even or odd.

Respuesta :

Shteynsenberg Shteynsenberg
  • 10-02-2021

Answer:

int num = Console.ReadInt("Please enter a number");

if(num%2 == 0) {

Console.WriteLine("Number is even");

} else {

Console.WriteLine("Number is odd");

Explanation:

Answer Link

Otras preguntas

Mrs.Jackson is filling planter boxes with soil. She has soil that is 27% sand and she buys 8 pounds of a commercial potting soil that is 16% sand. She mixes som
What is the effect on the graph of the equation y=2x^2 when the equation is changed to y=-2x^2?
What is it called when an organism signals another that their interaction is not serious or threatening? cooperation metacommunication agonistic interaction cou
¿J o G? Rewrite the word using the correct letter. __ente
What is the resistance of 1,000 feet of #16 AWG copper wire? A. 2.575 B. 4.094 C. 6.510 D. 5.185
If the endpoints of the diameter of a circle are (6,3) and (2,1), what is the standard form of the circle?
3. Which item helps Milo get the Princesses out of the Castle-in-the-Air?
Which of the following statements about the motion of planetary satellites is true? A. Planetary satellites can orbit their planet in the same direction as t
I really don't understand any of this because my teacher does not help us
Need help with my homework
good job