top of page

Edabit Java: Is the Number Less than or Equal to Zero?, Very Easy Difficulty


  • This was a simple question where all I needed to do was return the element true or false if it was less than or equal to zero


public class Program {

public static boolean lessThanOrEqualToZero(int num) {

boolean nums = num <= 0;

return nums;

}

}


3 views0 comments
Post: Blog2_Post
bottom of page