Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
OPIM3220-MonthLookup/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (10 sloc)
390 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OPIM3220-MonthLookup | |
Write a program that prompts for an input, detects if the user has provided an integer (month number) or string (month name), and based on the result tells the user the other piece of information. | |
## Example 1 | |
"What month do you want to look up?" | |
June | |
"June is the 6 month of the year" | |
## Example 2 | |
"What month do you want to look up?" | |
6 | |
"Month 6 is June" | |