subject

Consider the following code segment:

if (value > 0)

System. out. println("positive");

if (value < 0)

System. out. println("negative");

if (value == 0)

System. out. println("neither");

Rewrite the code in the space below so that it uses an if-else structure instead of 3 if statements.

IM struggling does anyone know how to do this

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
What can you find the under the privacy policy section of a shopping website?
Answers: 1
question
Computers and Technology, 22.06.2019 04:50
Which are steps taken to diagnose a computer problem? a) reproducing the problem and using error codes b) reproducing the problem and troubleshooting c) using error codes and troubleshooting d) using error codes and stepping functions
Answers: 1
question
Computers and Technology, 22.06.2019 10:20
Shown below is the start of a coding region within the fist exon of a gene. 5'--3' 3'--5' how many cas9 pam sequences are present?
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
You know the right answer?
Consider the following code segment:

if (value > 0)

System. out. println(...
Questions
question
Mathematics, 24.09.2019 23:00
question
History, 24.09.2019 23:00
question
Social Studies, 24.09.2019 23:00
Questions on the website: 13722362