sjparthiv sjparthiv
  • 17-03-2020
  • Computers and Technology
contestada

java program to check whether its an evil no or not

Respuesta :

edisonku16
edisonku16 edisonku16
  • 06-07-2021

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.

Answer Link

Otras preguntas

pls help w my khan acc
Answer I need help please it’s hard
Who was the first president of Uganda?​
Which of the following events occurs directly after a DNA molecule is unzipped? a. Mismatched nucleotide bases are identified and replaced. b. Free-floating nuc
Solve for the portion. Round to hundredths when necessary. What is the portion if the base is 1,850 and the rate is 150%?
oil and gas prices THe average gasoline price per gallon (in cities) and the cost of a barrel of oil shown below for a random selection of weeks in 2015. oil: 8
how to find the ima of a wedge
5 positive integers are arranged in ascending order, as follows:6,6,8,10,xThe mean and the median are equal.Find x.​
what happens to the rate of diffusion.if the.red blood cell swells
Why did God punish the people during the time of the Baal?​