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 me. -1/15 + (-3/5)
Which statement is true? A. Gamal Abdel Nasser took over the Suez Canal because he wanted to fight Israel. B. Gamal Abdel Nasser took over the Suez Canal in ord
I Need help (ᗒᗣᗕ)՞ (;´༎ຶٹ༎ຶ`)
Joes account was 1 more than one half of Chandras account. The sum of their accounts was $751. Find the amount of Joes account
What is the first step to take when making a decision to eat healthy foods? Read healthy food recipes. Complete a daily food log. Find healthy food alternatives
What is the distance from the pier to the lighthouse?​
Someone plz help me
Which description BEST describes the shelters of many American Indians living in Georgia at the time of European contact?
which one? A B C OR D
y is directly proportional to √XWhen x = 49, y = 4(Not from the question, remember that this "When x = 49, y = 4," is to find K)a) Find a formula for y in terms