Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Forum » x-Forum » Question

function compare_to_interval-CppBuzz-Forum

Hi admin can u help me explain how write this function :

Write a function compare_to_interval that receives as a parameter three integers a, b and x. The function should compare x with the interval [ a, b] and return 0 if x is in the interval, -1 if x is less, or 1 if x is greater.

Thank u in advance,

Posted by Cstudents 2021-02-08 13:33:46

No Ans Posted

Please login to comment

Log In

Ask New Question