Question: I need to do this without using the Math utility. Re type the code and fix any errors. The code should convert negative numbers to
I need to do this without using the Math utility.
Re type the code and fix any errors. The code should convert negative numbers to O if (userNum >-e) System.out.println("Non-negative"); else System.out.printin("Negative; converting to e") userNum-e; Systen.out .format ("Final: System.out.println(") %d", userNum); 1 import java.uti1.Scanner 3 public class ConvertNeeative 4 public static void main (String t] ares) int userNum- /x Your solution goes here return; 10 11 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
