C# program for months -


i strugling exercise. beginer , dont know start. asked create console program if give number between 1 , 12 must give corresponding month name , if give name of month should give number of month. please code. should done using array. thank you.

depends on you're learning, guess... may demonstrating switch(intmonth) type thing, so:

switch(intmonth) {                  case 1:                return "january";             break;                            case 2:                return "february";             break;          .... } 

or mentioned, make use of datetime...

there's many many ways it... guess need select right way... efficient way... so, depends on assignment.

good luck.


Comments