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

which concept does adam smith use to describe the amount of money commonly paid for any commodity
When writing a summary of a text, you must a. restate the ideas in your own words b. include your personal opinions c. make the summary longer than the origi
Identify the source most likely to have reliable information on the United States’ involvement in WWI. .edu .org .gov .com
german leaders who led the nazi party was
Given the function f(x) = 5^x, Section A is from x = 0 to x = 1 and Section B is from x = 2 to x = 3. Part A: Find the average rate of change of each section. (
How would I abbreviate my street address? 158 Orchard St New York, NY
Convert the polar equation r^2 = 2sin2Ө to a Cartesian equation. Answer choices: (x^2 + y^2)^2 = 2xy (x^2 + y^2)^2 = 4xy (x^2 + y^2)^2 = 2y^2
Mr. Hann is trying to decide how many new copies of a book to order for his students. Each book weighs 6 ounces. Which ordered pair is a viable solution if x re
11 out of 25 as a percentage
simplify the logarithm log2 (64)