Skip to main content
4 of 4
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/

C, 147 145 112 bytes

main(m){char a[99]="JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC";scanf("%4s%d",a+50,&m);printf("%.3s%s",a+--m*3,a+52);}

Online demo

Thanks ugoren!

Marco
  • 601
  • 4
  • 5