Computer Science, asked by sunakundan536, 4 months ago

write
a
Java script code to find
the odd and even
number.

Answers

Answered by gopabandhusatpathy
1

Answer:

jdksksksuuwo29bzk873mlzoal

Explanation:

jkslssjsnahfkg

Answered by Vikramjeeth
1

Answer:

this is the code to find a java script that the number is odd or even

const number = 6;

const result = number % 4; // 2

*coding of Java:

// program to check if the number is even or odd

// take input from the user

const number = prompt("Enter a number: ");

//check if the number is even

if(number % 2 == 0) {

console.log("The number is even.");

}

// if the number is odd

else {

console.log("The number is odd.");

}

Output:

Enter a number: 5

The number is odd.

so dear this output gives that the number is odd.

hope \: it \: helps \: you

Similar questions