r9110261 r9110261
  • 15-12-2021
  • Computers and Technology
contestada

write javascript program to find enter number is odd or even
​

Respuesta :

EP0NA
EP0NA EP0NA
  • 15-12-2021

Answer:

import java.lang.*;

import java.util.*;

public class Program

{

public static void main(String[] args) {

Scanner s=new Scanner(System.in);

int numb;

System.out.print("Enter a number:");

numb=s.nextInt();

System.out.println(numb);

int temp=numb;

if(temp==(numb/2)*2)

System.out.println(temp+" is an EVEN number");

else

System.out.println(temp+" is an ODD number");

}

}

Answer Link

Otras preguntas

What right does the 14th ammendment protect
In which country did the Chernobyl Nuclear Disaster take place?
What are the 4 stages of mitosis ?
Who founded the present-day state of Utah?
What Nationality was Henry Hudson ?
Which of the following is a need of most plants? A. To release carbon dioxide to the environment. B. To take up oxygen from the environment. C. To release wate
What does it mean when the terms in a ratio are equal
Which form of a possessive pronoun correctly completes the sentence? The car had luggage strapped on __________ roof. a. it b. it's c. its' d. its
a circular pond has a diameter of 27 yards. what is the area of the surface of the pond? use 3.14 for pi sign
Which phrase describes the similarity between the pairs of elements in the analogy below? Nathan has been moving from one job to another like a bee flying from