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

Which of the following is the graph of f(x) = x^2 + 3x − 4?
Lead-202 has a half-life of 53,000 years. How long will it take for 15/16 of a sample of lead-202 to decay? A) 106,000 years B) 159,000 years C) 212,000 years
The equation yˆ=20646 (0.86)x estimates the value of a brand of car x years after it was purchased new. Milo purchased this brand of car when it was new. To the
calculate the frequency of yellow light with a wavelength of 580x10 to the -9
Which of the following literary descriptions can best be applied to Ibsen's Hedda Gabler? Select all that apply. Romantic
Correct answers and thorough explanations only please: How does the policy-setting role played by the Chinese Communist Party compare with the roles played by p
When a rock is broken down, this is an example of what type of, Mechanical Weathering Chemical Weathering Weathering All the above
if 12 key chains cost $9, then 20 key chains cost $_______
Determine whether the formula describes y as a function of x. Explain your reasoning. (2 points) y = 9x + 1
Emergency!!!! Please help Geometry