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 2 parameters both integers. It substracts the two parameters and if its negative or 0 returns true otherwise false
public boolean sub (int a, int b)
Write a function with return type boolean and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!