An Evil number is a positive whole number which has even number of 1s in is binary
Fantastic news! We've Found the answer you've been seeking!
Question:
An Evil number is a positive whole number which has even number of 1’s in is binary equivalent.
Example: Binary equivalent of 9’s is 1001.Which contains even number of 1’s. Thus 9 is Evil Number.
A few Evil numbers are 3,5,6,9.... .
Design a program to accept a positive whole number ‘N’ where N>2 and N
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: