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

a care starting from rest has an acceleration 0.3 m/s square, calculate the velocity and distance travelled by this car after 2 minutes?
Square MATH has a side length of 7 inches. which three-dimensional object will be formed by continuously rotating square MATH around Side AT?
She wore an itsy bitsy, teeny weeny, yellow polkadot bikini. That she wore for the first time today. It was an itsy bitsy, teeny weeny, yellow polkadot bikini.
can anybody help me on this please I will be giving 15 points..
Given the information you now know, what is the effect of hyperventilation on blood pH?pH? During hyperventilation, the rapid in the blood CO2CO2 concentration
without a pillar and you build a house what will happen.​
Express 7040 in its standard form
What impact did Portuguese fort have on Swahili city state of east Africa in the 1509
The rise is the change in a line. The run is the change in a line. horizontal vertical
When did the following countries become independent states? India Pakistan Bangladesh Sri Lanka.