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

almira earns 50$ an hour. how much does she earn in 6 hours
How do you divide 156 by 2.5???????? URGENT!
In their 1943 meeting at Casablanca, Allied leaders decided to invade a. Italy. b. France. c. Germany. d. North Africa.
The rulers of Italy before the Romans were the _____. Greeks Italics Etruscans Sicilians
Which of the following is NOT a type of nucleic acid? a. DNA c. mRNA b. RNA d. dRNA
round 354,605 to nearest thousand
Which of the following best describes the sources a historian uses to support an argument
Quotient when 1,344 is divided by 7
Which words make up the adverb phrase in this sentence? Weather satellites circle above the earth, collecting information. a. Weather satellites b. above the
for the greeting in a business letter when you don't know the name of the person who will be reading it, which of the following is least likely to conform to pr