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

Help...giving 20 points (number 3 nothing else)
help me pleaseeeeeeeeeeeeeeeeeeee:( i’m so confused:(
Simplify 3r + 2(t + 5r).
Why is (-5) to the 28th power positive but without parentheses it is negative?
The word miserable helps you visualize buildings that A. blend in with the surroundings. B. look like most buildings, C. are ugly in appearance. D. are very tal
5. A turtle dives towards deeper water at a rate of 8 inches per second. It continues for a total of 16 seconds. Which expression represents this situation? A 1
Religious freedom Economic opportunities Plenty of land What would be an appropriate title for this list? A) Three Freedoms B) Escape from Slavery in America C)
what is independent venerable
5.9= -4+×help me solve this​
Choose the appropriate descriptor for the term gram. mass volume length area