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

To be productive in a new job , which one of the following suggestions can you safely ignore ? A. Dress in manner acceptable in your workplace B. I'm team assig
Who was the first president to express the need for the United States to remain neutral in foreign affairs
what is the difference of 5 1/5 - 2 3/5
Natural selection would favor which of the these rabbits in Antarctica? A) brown rabbit B) white rabbit C) black rabbit D) white-and-black rabbit
Help for those 2 plz!!!!!!!
Notable poets have attempted to define poetry. Among these efforts, the idea that poetry is an ancient technology came from a. Billy Collins. b. Robert Pinsky
40% of what number is 30?
What part of a yard is 24 inches
The hydra has an incomplete digestive system. How does the hydra remove undigested food? A. It pushes out food through an opening, which is also used to br
Correct the sentence by selecting the correct pronoun usage. "Two of the better runners were he and she" he and her him and she them correct as is