Computer Science, asked by eakshithkarri, 5 months ago

write a program to accept a number between 1 to 12 and print the coresponding month​

Answers

Answered by rpvvipex912152
0

Answer:

My program is suppose to prompt user to enter a number 1-12 and output the corresponding month. Ok I know I am missing a very important part of this program but right know I am struggling to figure out what to use. Do I need to have a string that includes all the names of the months? Also I know that I need to have something to put after the cout<<"the month is"<< something has to go here so the answer will print but I not sure what right now. I also think I need at have int month= something but not sure if it should be 1-12 or monthname. Here is my edited program it was working but now it has a debug error the variable "month" is being used without being

Explanation:

Similar questions