Computer Science, asked by goodvibesonly7643, 10 months ago

Write a program that gets an input of a number from a user and checks if it is odd or even.

Answers

Answered by Rajodita
0

Answer:

Scanner class done.

Explanation:

First input a number then checking it whether it is an even no. or an odd no. by dividing it with 2 if it gets divisible by 2 it is an even number else it is an odd number .

Attachments:
Similar questions