Sign in

Sign in

Open in App**QUESTION**

Text

Image

Write a function get_num_type(num) that returns the following output based on the value of num. You can assume that num will always be an integer. get_num_type should return: - "zero" if num is 0 - "positive and odd" if num is a positive number as well as an odd number - "positive and even" if num is a positive number as well as an even number - "negative and odd" if num is a negative number as well as an odd number - "negative and even" if num is a negative number as well as an even number Sample Input: 11 Sample Output: positive and oddundefined

Related Questions

Copyright © 2023 StudyX Inc