Home Work (03-04-2013)

posted Apr 3, 2013, 1:48 AM by Salah Ibrahim   [ updated Apr 3, 2013, 1:48 AM by Karwan Jacksi ]
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.
Comments