Question: Write a function with return type boolean and name it sub. It must take 2 parameters both integers. It substracts the two parameters and if
Write a function with return type boolean and name it sub. It must take parameters both integers. It substracts the two parameters and if its negative or returns true otherwise false
public boolean sub int a int b
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
