Question: Assume temp has been declared in the code below. What is the correct way to rewrite this code as an if - else statement? temp
Assume temp has been declared in the code below. What is the correct way to rewrite this code as an ifelse statement?
temp ;
system.out.printftemp "freezing" : "above freezing";
if temp
system.out.printffreezing;
else
System.out.printfabove freezing";
j
if temp
System.out.printffreezing;
else
System.out.printfabove freezing";
if temp
system.out.printffreezing;
else
system,out.printfabove freezing";
if temp
system.out.printffreezing;
system.out.printfabove freezing";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
