define a function checkvalues() with no parameters that reads integers from input until integer 1 is read. the function returns true if all integers read before 1 are equal to 1000, otherwise, returns false. ex: if the input is 1000 1000 1000 1, then the output is: