Write a c++ function named findeven() that accepts only one double-precision number. findeven() return 1 if the value of the passed number is even otherwise returns -1. Then the main function in your c++ program will allow the user to input any positive number. Finally, the main function will display the returned value after calling the findeven() function in the output screen.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here