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

Is it possible for a trapezoid to have 3 right angles
what do you think may happen to leading edge of oceanic crust at is continues to move downward why?
 Write a two- or three-paragraph essay comparing the system of direct democracy adopted by Athens and the system of government Plato described in The Republic.
Why was writing a key invention for the Sumerians?
According to the concept of reincarnation, what would a man hope to return as in the next life? A cow A woman An elephant A ghost
Document 2 …Organization was the key to the success of the great Mongol armies. The cavalry, first devised by Genghis Khan, consisted of 10 squadrons. Ten s
Responses of the immune system to usually harmless environmental substances are known as (1) antigen production (2) chromosomal mutations (3) patho
. . . It recounts the life of the officials, the notaries, the deputies, the proprietors of Indian labour, the priests, the miners and the Spaniards who tra
what is the simplest form of 36/27
Help answer 1/5x-2/3y=30 when y = 15