subject

The following code is intended to test if the exponent is 8 or less. int base = 2; int exponent = scan. nextint(); int answer = (int)math. pow(base, exponent); if (answer < = 256) system. out. println("exponent is 8 or less"); what is the problem with the code? nothing is wrong, the code works as intended. the < = should be > the < = should be ==

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
How can a broadcast station be received through cable and satellite systems?
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which option should u select to ignore all tracked changes in a document
Answers: 1
question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 2
You know the right answer?
The following code is intended to test if the exponent is 8 or less. int base = 2; int exponent = sc...
Questions
question
Mathematics, 26.07.2019 22:20
Questions on the website: 13722362