9511_workbook

solved exercises from algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
guia03/ex41.c (364B)
   1 #include <stdio.h>
   2 
   3 typedef enum { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC } month_t;
   4 
   5 const char months[][10] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"  };
   6 
   7 int main (void)
   8 {
   9     month_t month;
  10 
  11     month = MAR;
  12 
  13     printf("Month: %s\n", months[month]);
  14     
  15     return 0;
  16 }