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

PLS HELPPPPPPP Which expression is equivalent to 7t+6w−4t+2w? 3t+8w 11tw 13t−2w 11t−8w
Find the angle 25 points for you plus a brainliest, thanks and 5 star
f(x,y,z)=xyz'+xy'z+xy'z'+x'yz+x'y'z.
what does it mean to be a belizean
Wei is writing a report. She wants to use a phrase that most strongly fits her topic. Choose the phrase that best belongs in the blank. Scientists have known th
PLEASE ANSWER THIS QUESTION!!! The power, P (watts), of a car engine is proportional to the square of its speed, s (m/s).When s=35, P=2200.Work out the power (t
Which one is the larger average rate, -3.142 or -0.5?
the ratio of boys to girls in a classroom 4:5 what is the meaning of this ratio​
PLEASE HELP!!!!! will mark brainliest!!!!!
WILL GET BRAINLEST Which statement is the best example of how society affects the use of technology? A. Larger vehicles that use gasoline release more carbon d