Print greater_less_equal_5(4)


#1

what does 4 5 6 mean in ()


#2

If f is a function then you can call f with the call operator:

f()

To send f values, put them between the parentheses:

f(1)

Separated by comma if there are several values to send:

f(1, 2)


#3

but why 4 5 6 in this example


#4

You’re testing a function that compares the value provided to it, to the number 5
Wouldn’t it then be a good idea to test it with values that are less than 5, equal to 5, and greater than 5 to see whether the function is able to categorize them correctly?


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.