Homework: Larger Non-Negative
Created By: Ellen Spertus
/ Version: 2023.12.0
Write a method largerNonNegative
that returns the larger of 2 int
arguments, or 0 if both of the arguments are negative.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.Please Log In to Complete Homework Problems