Computer Science, asked by nikogori4, 5 months ago

write a program to input a number and print and check whether the number is evil number or not​

Answers

Answered by AbhiThakur07
0

Explanation:

Program to check whether the given number is Evil Number or not in Java. First run: Enter a positive number : 4520 Binary Equivalent = 1000110101000 Number of Ones = 5 4520 is Not an Evil Number. Second run: Enter a positive number : 9 Binary Equivalent = 1001 Number of Ones = 2 9 is an Evil Number.

Similar questions