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

Please help with numbers 12, 14, and 15!! Due tomorrow!! Please help!
The Storm Prediction Center in Norman, Oklahoma, maintains a constant vigil for:
Mr Walton ordered 12 pizzas,for the art class celebration one fourth of the pizza had only mushrooms. how many of the pizza has only mushrooms
Which of these minerals is a nonmetal ? A. Chromium B. Gypsum C. Nickel D. Aluminum
An analogy to define the term half-life?
How did the U.S. militarys need for war supplies affect the nations factories
Use the distributive property to write an equivalent expression for 18 X plus 9Y
what is the solution to the linear equation? 2.8y+6+0.2y=5y-14
PLZ HELP EASY QUESTION ASAP!!! Which TWO causes of decline were common to the Roman, Han, and Gupta empires? A : Political movements worked to overthrow the gov
¿Para que le sirve la energia a los espermatozoides???