Question: Write a function get positive integer input ( prompt ) that reads user input for a positive integer, displaying the specified prompt. The function returns
Write a function get positive integer inputprompt that reads user input for a positive integer, displaying the specified prompt. The function returns the input that was entered by the user. Assume the user enters an integer, but the function must include input validation with a loop to ensure that the input is positive. points Write a function num to ordinaln that returns a string representing the ordinal version of the number n Assume n is a positive integer, but the function should work correctly for any positive integer value of n Here are some example arguments for the num to ordinal function and their expected return values:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
