Ad
  • Default User Avatar

    yes the while loop will break if the f0 is below or equal to 0 or if n becomes 0
    or both so if the loop breaks by n becoming 0 then still the f0 is larger than 0 so true else if f0 becomes 0 or below the loop breaks and then if n is 0 returns true else false.