Home Work (03-04-2013)

Post date: Apr 3, 2013 8:48:15 AM

HW. Write a c++ function that accepts a number and the function must check if this number is :

            - positive and odd  or

            - positive and even  or

            - negative and odd  or

            - negative and even 

        and the function must return a string that explains that.

For Example:

      Enter a  number : -5

      Output : negative and odd.