Write a program that gets an input of a number from a user and checks if it is odd or even.
Answers
Answered by
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
Math,
5 months ago
English,
5 months ago
Math,
5 months ago
Hindi,
10 months ago
Computer Science,
10 months ago
Social Sciences,
1 year ago