Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time

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"